
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>Server Side Apply · 这是程序员吗</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="xishengcai">
        
        
    
    
    <link rel="stylesheet" href="../../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-toggle-chapters/toggle.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-search-plus/search.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-disqus/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-prism/prism-base16-ateliersulphurpool.light.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-advanced-emoji/emoji-website.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-anchors/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-emphasize/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-katex/katex.min.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-sectionx/sectionx.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-donate/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-local-video/video-js.min.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-terminal/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-alerts/style.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-versions-select/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-theme-comscore/test.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    


    

        
    
    
    
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="准入控制.html" />
    
    
    <link rel="prev" href="readme.html" />
    

    
    <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-chart/c3/c3.min.css">
    <script src="../../../gitbook/gitbook-plugin-chart/c3/d3.min.js"></script>
    <script src="../../../gitbook/gitbook-plugin-chart/c3/c3.min.js"></script>
    

    <script src="../../../gitbook/gitbook-plugin-graph/d3.min.js"></script>
    <script src="../../../gitbook/gitbook-plugin-graph/function-plot.js"></script>    

    
        <link rel="shortcut icon" href='../../../favicon.ico' type="image/x-icon">
    
    
        <link rel="bookmark" href='../../../favicon.ico' type="image/x-icon">
    
    
    

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"repo":"xishengcai/xisheng.blog","types":["star"],"size":"small"};
    </script>

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="https://xisheng.vip" target="_blank" class="custom-link">Home</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        <li class="header">Blog</li>
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../../">
            
                <a href="../../../">
            
                    
                        <b>1.1.</b>
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../../algorithm/">
            
                <a href="../../algorithm/">
            
                    
                        <b>1.2.</b>
                    
                    Algorithm
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../../algorithm/heap.html">
            
                <a href="../../algorithm/heap.html">
            
                    
                        <b>1.2.1.</b>
                    
                    Heap
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../../algorithm/readme.html">
            
                <a href="../../algorithm/readme.html">
            
                    
                        <b>1.2.2.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../../angular/">
            
                <a href="../../angular/">
            
                    
                        <b>1.3.</b>
                    
                    Angular
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../../angular/1-start.html">
            
                <a href="../../angular/1-start.html">
            
                    
                        <b>1.3.1.</b>
                    
                    Start
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../../angular/2-component.html">
            
                <a href="../../angular/2-component.html">
            
                    
                        <b>1.3.2.</b>
                    
                    Component
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../../angular/3-form.html">
            
                <a href="../../angular/3-form.html">
            
                    
                        <b>1.3.3.</b>
                    
                    Form
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../../angular/readme.html">
            
                <a href="../../angular/readme.html">
            
                    
                        <b>1.3.4.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../../database/">
            
                <a href="../../database/">
            
                    
                        <b>1.4.</b>
                    
                    Database
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../../database/mongodb.html">
            
                <a href="../../database/mongodb.html">
            
                    
                        <b>1.4.1.</b>
                    
                    Mongodb
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../../database/readme.html">
            
                <a href="../../database/readme.html">
            
                    
                        <b>1.4.2.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../../docker/">
            
                <a href="../../docker/">
            
                    
                        <b>1.5.</b>
                    
                    Docker
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../../docker/CentOS.html">
            
                <a href="../../docker/CentOS.html">
            
                    
                        <b>1.5.1.</b>
                    
                    CentOS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../../docker/install.html">
            
                <a href="../../docker/install.html">
            
                    
                        <b>1.5.2.</b>
                    
                    Install
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../../docker/readme.html">
            
                <a href="../../docker/readme.html">
            
                    
                        <b>1.5.3.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="../../docker/官方shell.html">
            
                <a href="../../docker/官方shell.html">
            
                    
                        <b>1.5.4.</b>
                    
                    官方Shell
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../../golang/">
            
                <a href="../../golang/">
            
                    
                        <b>1.6.</b>
                    
                    Golang
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../../golang/aop.html">
            
                <a href="../../golang/aop.html">
            
                    
                        <b>1.6.1.</b>
                    
                    Aop
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../../golang/base/">
            
                <a href="../../golang/base/">
            
                    
                        <b>1.6.2.</b>
                    
                    Base
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.2.1" data-path="../../golang/base/copy.html">
            
                <a href="../../golang/base/copy.html">
            
                    
                        <b>1.6.2.1.</b>
                    
                    Copy
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2.2" data-path="../../golang/base/new_and_make.html">
            
                <a href="../../golang/base/new_and_make.html">
            
                    
                        <b>1.6.2.2.</b>
                    
                    New And Make
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2.3" data-path="../../golang/base/readme.html">
            
                <a href="../../golang/base/readme.html">
            
                    
                        <b>1.6.2.3.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2.4" data-path="../../golang/base/reflect.html">
            
                <a href="../../golang/base/reflect.html">
            
                    
                        <b>1.6.2.4.</b>
                    
                    Reflect
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2.5" data-path="../../golang/base/string.html">
            
                <a href="../../golang/base/string.html">
            
                    
                        <b>1.6.2.5.</b>
                    
                    String
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2.6" data-path="../../golang/base/tag.html">
            
                <a href="../../golang/base/tag.html">
            
                    
                        <b>1.6.2.6.</b>
                    
                    Tag
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../../golang/clouser.html">
            
                <a href="../../golang/clouser.html">
            
                    
                        <b>1.6.3.</b>
                    
                    Clouser
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../../golang/err 优雅处理.html">
            
                <a href="../../golang/err 优雅处理.html">
            
                    
                        <b>1.6.4.</b>
                    
                    Err 优雅处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../../golang/go module 2.html">
            
                <a href="../../golang/go module 2.html">
            
                    
                        <b>1.6.5.</b>
                    
                    Go Module 2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="../../golang/go_mod.html">
            
                <a href="../../golang/go_mod.html">
            
                    
                        <b>1.6.6.</b>
                    
                    Go Mod
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="../../golang/gocraftwork.html">
            
                <a href="../../golang/gocraftwork.html">
            
                    
                        <b>1.6.7.</b>
                    
                    Gocraftwork
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.8" data-path="../../golang/oauth.html">
            
                <a href="../../golang/oauth.html">
            
                    
                        <b>1.6.8.</b>
                    
                    Oauth
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.9" data-path="../../golang/readme.html">
            
                <a href="../../golang/readme.html">
            
                    
                        <b>1.6.9.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.10" data-path="../../golang/swagger.html">
            
                <a href="../../golang/swagger.html">
            
                    
                        <b>1.6.10.</b>
                    
                    Swagger
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.11" data-path="../../golang/tls.html">
            
                <a href="../../golang/tls.html">
            
                    
                        <b>1.6.11.</b>
                    
                    Tls
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.12" >
            
                <span>
            
                    
                        <b>1.6.12.</b>
                    
                    代码走读
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.12.1" data-path="../../golang/代码走读/2020.5.26.html">
            
                <a href="../../golang/代码走读/2020.5.26.html">
            
                    
                        <b>1.6.12.1.</b>
                    
                    2020.5.26
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6.13" data-path="../../golang/任务队列/">
            
                <a href="../../golang/任务队列/">
            
                    
                        <b>1.6.13.</b>
                    
                    任务队列
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.13.1" data-path="../../golang/任务队列/gocraft-worker.html">
            
                <a href="../../golang/任务队列/gocraft-worker.html">
            
                    
                        <b>1.6.13.1.</b>
                    
                    Gocraft Worker
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.13.2" data-path="../../golang/任务队列/readme.html">
            
                <a href="../../golang/任务队列/readme.html">
            
                    
                        <b>1.6.13.2.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6.14" data-path="../../golang/参数校验.html">
            
                <a href="../../golang/参数校验.html">
            
                    
                        <b>1.6.14.</b>
                    
                    参数校验
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../../istio/">
            
                <a href="../../istio/">
            
                    
                        <b>1.7.</b>
                    
                    Istio
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../../istio/readme.html">
            
                <a href="../../istio/readme.html">
            
                    
                        <b>1.7.1.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../../istio/virtualservice.html">
            
                <a href="../../istio/virtualservice.html">
            
                    
                        <b>1.7.2.</b>
                    
                    Virtualservice
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" >
            
                <span>
            
                    
                        <b>1.8.</b>
                    
                    Java
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../../java/jvm.html">
            
                <a href="../../java/jvm.html">
            
                    
                        <b>1.8.1.</b>
                    
                    Jvm
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../../java/typescript.html">
            
                <a href="../../java/typescript.html">
            
                    
                        <b>1.8.2.</b>
                    
                    Typescript
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../">
            
                <a href="../">
            
                    
                        <b>1.9.</b>
                    
                    Kubernetes
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../APIService.html">
            
                <a href="../APIService.html">
            
                    
                        <b>1.9.1.</b>
                    
                    APIService
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../CAK.html">
            
                <a href="../CAK.html">
            
                    
                        <b>1.9.2.</b>
                    
                    CAK
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="../Deployment 的实现原理.html">
            
                <a href="../Deployment 的实现原理.html">
            
                    
                        <b>1.9.3.</b>
                    
                    Deployment 的实现原理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4" data-path="../K8s源码/">
            
                <a href="../K8s源码/">
            
                    
                        <b>1.9.4.</b>
                    
                    K8s源码
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.4.1" data-path="../K8s源码/calico 源码分析.html">
            
                <a href="../K8s源码/calico 源码分析.html">
            
                    
                        <b>1.9.4.1.</b>
                    
                    Calico 源码分析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.2" data-path="../K8s源码/garbage collector controller 源码分析.html">
            
                <a href="../K8s源码/garbage collector controller 源码分析.html">
            
                    
                        <b>1.9.4.2.</b>
                    
                    Garbage Collector Controller 源码分析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.3" data-path="../K8s源码/job.html">
            
                <a href="../K8s源码/job.html">
            
                    
                        <b>1.9.4.3.</b>
                    
                    Job
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.4" data-path="../K8s源码/kube-proxy-iptables.html">
            
                <a href="../K8s源码/kube-proxy-iptables.html">
            
                    
                        <b>1.9.4.4.</b>
                    
                    Kube Proxy Iptables
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.5" data-path="../K8s源码/kube-proxy-ipvs.html">
            
                <a href="../K8s源码/kube-proxy-ipvs.html">
            
                    
                        <b>1.9.4.5.</b>
                    
                    Kube Proxy Ipvs
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.6" data-path="../K8s源码/kube-proxy.html">
            
                <a href="../K8s源码/kube-proxy.html">
            
                    
                        <b>1.9.4.6.</b>
                    
                    Kube Proxy
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.7" data-path="../K8s源码/kubectl-exec.html">
            
                <a href="../K8s源码/kubectl-exec.html">
            
                    
                        <b>1.9.4.7.</b>
                    
                    Kubectl Exec
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.8" data-path="../K8s源码/kubectl源码阅读1.html">
            
                <a href="../K8s源码/kubectl源码阅读1.html">
            
                    
                        <b>1.9.4.8.</b>
                    
                    Kubectl源码阅读1
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.9" data-path="../K8s源码/kubectl源码阅读2.html">
            
                <a href="../K8s源码/kubectl源码阅读2.html">
            
                    
                        <b>1.9.4.9.</b>
                    
                    Kubectl源码阅读2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.10" data-path="../K8s源码/readme.html">
            
                <a href="../K8s源码/readme.html">
            
                    
                        <b>1.9.4.10.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.11" data-path="../K8s源码/schedule.html">
            
                <a href="../K8s源码/schedule.html">
            
                    
                        <b>1.9.4.11.</b>
                    
                    Schedule
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.12" data-path="../K8s源码/scheme.html">
            
                <a href="../K8s源码/scheme.html">
            
                    
                        <b>1.9.4.12.</b>
                    
                    Scheme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.13" data-path="../K8s源码/调度队列.html">
            
                <a href="../K8s源码/调度队列.html">
            
                    
                        <b>1.9.4.13.</b>
                    
                    调度队列
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9.5" data-path="../Karmada.html">
            
                <a href="../Karmada.html">
            
                    
                        <b>1.9.5.</b>
                    
                    Karmada
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.6" data-path="../Pixie.html">
            
                <a href="../Pixie.html">
            
                    
                        <b>1.9.6.</b>
                    
                    Pixie
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.7" data-path="../admission access.html">
            
                <a href="../admission access.html">
            
                    
                        <b>1.9.7.</b>
                    
                    Admission Access
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.8" data-path="../ccm.html">
            
                <a href="../ccm.html">
            
                    
                        <b>1.9.8.</b>
                    
                    Ccm
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.9" data-path="../client-go.html">
            
                <a href="../client-go.html">
            
                    
                        <b>1.9.9.</b>
                    
                    Client Go
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.10" data-path="../command.html">
            
                <a href="../command.html">
            
                    
                        <b>1.9.10.</b>
                    
                    Command
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.11" data-path="../controller.html">
            
                <a href="../controller.html">
            
                    
                        <b>1.9.11.</b>
                    
                    Controller
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.12" data-path="../copy docker config.html">
            
                <a href="../copy docker config.html">
            
                    
                        <b>1.9.12.</b>
                    
                    Copy Docker Config
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.13" data-path="../etcd-operation.html">
            
                <a href="../etcd-operation.html">
            
                    
                        <b>1.9.13.</b>
                    
                    Etcd Operation
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.14" data-path="../gc.html">
            
                <a href="../gc.html">
            
                    
                        <b>1.9.14.</b>
                    
                    Gc
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.15" data-path="../helm chart.html">
            
                <a href="../helm chart.html">
            
                    
                        <b>1.9.15.</b>
                    
                    Helm Chart
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.16" data-path="../helm.html">
            
                <a href="../helm.html">
            
                    
                        <b>1.9.16.</b>
                    
                    Helm
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.17" >
            
                <span>
            
                    
                        <b>1.9.17.</b>
                    
                    Helm
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.17.1" data-path="../helm/charts.html">
            
                <a href="../helm/charts.html">
            
                    
                        <b>1.9.17.1.</b>
                    
                    Charts
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.17.2" data-path="../helm/helm 钩子函数.html">
            
                <a href="../helm/helm 钩子函数.html">
            
                    
                        <b>1.9.17.2.</b>
                    
                    Helm 钩子函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.17.3" data-path="../helm/helm-operator.html">
            
                <a href="../helm/helm-operator.html">
            
                    
                        <b>1.9.17.3.</b>
                    
                    Helm Operator
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.17.4" data-path="../helm/文档查询.html">
            
                <a href="../helm/文档查询.html">
            
                    
                        <b>1.9.17.4.</b>
                    
                    文档查询
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.17.5" data-path="../helm/语法.html">
            
                <a href="../helm/语法.html">
            
                    
                        <b>1.9.17.5.</b>
                    
                    语法
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9.18" data-path="../install.html">
            
                <a href="../install.html">
            
                    
                        <b>1.9.18.</b>
                    
                    Install
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.19" data-path="../istio-inject.html">
            
                <a href="../istio-inject.html">
            
                    
                        <b>1.9.19.</b>
                    
                    Istio Inject
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.20" >
            
                <span>
            
                    
                        <b>1.9.20.</b>
                    
                    KubeEdge
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.21" data-path="../kuber-apiserver-flag.html">
            
                <a href="../kuber-apiserver-flag.html">
            
                    
                        <b>1.9.21.</b>
                    
                    Kuber Apiserver Flag
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.22" data-path="../kubernetes-client.html">
            
                <a href="../kubernetes-client.html">
            
                    
                        <b>1.9.22.</b>
                    
                    Kubernetes Client
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.23" data-path="../kubernetes灾备.html">
            
                <a href="../kubernetes灾备.html">
            
                    
                        <b>1.9.23.</b>
                    
                    Kubernetes灾备
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.24" data-path="../kubesphere/">
            
                <a href="../kubesphere/">
            
                    
                        <b>1.9.24.</b>
                    
                    Kubesphere
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.24.1" data-path="../kubesphere/helm.html">
            
                <a href="../kubesphere/helm.html">
            
                    
                        <b>1.9.24.1.</b>
                    
                    Helm
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.24.2" data-path="../kubesphere/readme.html">
            
                <a href="../kubesphere/readme.html">
            
                    
                        <b>1.9.24.2.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9.25" data-path="../kubevela/">
            
                <a href="../kubevela/">
            
                    
                        <b>1.9.25.</b>
                    
                    Kubevela
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.25.1" data-path="../kubevela/KubeVela 功能.html">
            
                <a href="../kubevela/KubeVela 功能.html">
            
                    
                        <b>1.9.25.1.</b>
                    
                    KubeVela 功能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.25.2" data-path="../kubevela/cue.html">
            
                <a href="../kubevela/cue.html">
            
                    
                        <b>1.9.25.2.</b>
                    
                    Cue
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.25.3" data-path="../kubevela/oam.html">
            
                <a href="../kubevela/oam.html">
            
                    
                        <b>1.9.25.3.</b>
                    
                    Oam
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.25.4" data-path="../kubevela/readme.html">
            
                <a href="../kubevela/readme.html">
            
                    
                        <b>1.9.25.4.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.25.5" data-path="../kubevela/rollout design.html">
            
                <a href="../kubevela/rollout design.html">
            
                    
                        <b>1.9.25.5.</b>
                    
                    Rollout Design
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.25.6" data-path="../kubevela/vela run.html">
            
                <a href="../kubevela/vela run.html">
            
                    
                        <b>1.9.25.6.</b>
                    
                    Vela Run
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.25.7" data-path="../kubevela/vela up.html">
            
                <a href="../kubevela/vela up.html">
            
                    
                        <b>1.9.25.7.</b>
                    
                    Vela Up
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.25.8" data-path="../kubevela/vela-cluster.html">
            
                <a href="../kubevela/vela-cluster.html">
            
                    
                        <b>1.9.25.8.</b>
                    
                    Vela Cluster
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.25.9" data-path="../kubevela/vela-helm.html">
            
                <a href="../kubevela/vela-helm.html">
            
                    
                        <b>1.9.25.9.</b>
                    
                    Vela Helm
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.25.10" data-path="../kubevela/vela-pk-oam.html">
            
                <a href="../kubevela/vela-pk-oam.html">
            
                    
                        <b>1.9.25.10.</b>
                    
                    Vela Pk Oam
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9.26" data-path="../mk-cert.html">
            
                <a href="../mk-cert.html">
            
                    
                        <b>1.9.26.</b>
                    
                    Mk Cert
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.27" data-path="../open_swagger-ui.html">
            
                <a href="../open_swagger-ui.html">
            
                    
                        <b>1.9.27.</b>
                    
                    Open Swagger Ui
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.28" data-path="../readme.html">
            
                <a href="../readme.html">
            
                    
                        <b>1.9.28.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.29" data-path="./">
            
                <a href="./">
            
                    
                        <b>1.9.29.</b>
                    
                    Task
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.29.1" data-path="HPA.html">
            
                <a href="HPA.html">
            
                    
                        <b>1.9.29.1.</b>
                    
                    HPA
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.29.2" data-path="kubectl patch.html">
            
                <a href="kubectl patch.html">
            
                    
                        <b>1.9.29.2.</b>
                    
                    Kubectl Patch
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.29.3" data-path="pod 信息注入.html">
            
                <a href="pod 信息注入.html">
            
                    
                        <b>1.9.29.3.</b>
                    
                    Pod 信息注入
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.29.4" data-path="pod 垂直扩缩容.html">
            
                <a href="pod 垂直扩缩容.html">
            
                    
                        <b>1.9.29.4.</b>
                    
                    Pod 垂直扩缩容
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.29.5" data-path="readme.html">
            
                <a href="readme.html">
            
                    
                        <b>1.9.29.5.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.9.29.6" data-path="server-side-apply.html">
            
                <a href="server-side-apply.html">
            
                    
                        <b>1.9.29.6.</b>
                    
                    Server Side Apply
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.29.7" data-path="准入控制.html">
            
                <a href="准入控制.html">
            
                    
                        <b>1.9.29.7.</b>
                    
                    准入控制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.29.8" data-path="聚合api.html">
            
                <a href="聚合api.html">
            
                    
                        <b>1.9.29.8.</b>
                    
                    聚合Api
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.29.9" data-path="资源预留配置.html">
            
                <a href="资源预留配置.html">
            
                    
                        <b>1.9.29.9.</b>
                    
                    资源预留配置
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9.30" data-path="../webhook.html">
            
                <a href="../webhook.html">
            
                    
                        <b>1.9.30.</b>
                    
                    Webhook
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.31" data-path="../一致性认证.html">
            
                <a href="../一致性认证.html">
            
                    
                        <b>1.9.31.</b>
                    
                    一致性认证
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.32" data-path="../专利名词.html">
            
                <a href="../专利名词.html">
            
                    
                        <b>1.9.32.</b>
                    
                    专利名词
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.33" data-path="../删除namespace.html">
            
                <a href="../删除namespace.html">
            
                    
                        <b>1.9.33.</b>
                    
                    删除Namespace
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.34" data-path="../简化多集群.html">
            
                <a href="../简化多集群.html">
            
                    
                        <b>1.9.34.</b>
                    
                    简化多集群
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.35" data-path="../网络插件/">
            
                <a href="../网络插件/">
            
                    
                        <b>1.9.35.</b>
                    
                    网络插件
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.35.1" data-path="../网络插件/calico.html">
            
                <a href="../网络插件/calico.html">
            
                    
                        <b>1.9.35.1.</b>
                    
                    Calico
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.35.2" data-path="../网络插件/cilium.html">
            
                <a href="../网络插件/cilium.html">
            
                    
                        <b>1.9.35.2.</b>
                    
                    Cilium
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.35.3" data-path="../网络插件/ebpf.html">
            
                <a href="../网络插件/ebpf.html">
            
                    
                        <b>1.9.35.3.</b>
                    
                    Ebpf
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.35.4" data-path="../网络插件/readme.html">
            
                <a href="../网络插件/readme.html">
            
                    
                        <b>1.9.35.4.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9.36" data-path="../镜像/">
            
                <a href="../镜像/">
            
                    
                        <b>1.9.36.</b>
                    
                    镜像
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.36.1" data-path="../镜像/Containerd Stargz Snapshotter.html">
            
                <a href="../镜像/Containerd Stargz Snapshotter.html">
            
                    
                        <b>1.9.36.1.</b>
                    
                    Containerd Stargz Snapshotter
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.36.2" data-path="../镜像/OCI.html">
            
                <a href="../镜像/OCI.html">
            
                    
                        <b>1.9.36.2.</b>
                    
                    OCI
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.36.3" data-path="../镜像/harbor/">
            
                <a href="../镜像/harbor/">
            
                    
                        <b>1.9.36.3.</b>
                    
                    Harbor
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.36.3.1" data-path="../镜像/harbor/readme.html">
            
                <a href="../镜像/harbor/readme.html">
            
                    
                        <b>1.9.36.3.1.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9.36.4" data-path="../镜像/readme.html">
            
                <a href="../镜像/readme.html">
            
                    
                        <b>1.9.36.4.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.36.5" data-path="../镜像/自动构建镜像.html">
            
                <a href="../镜像/自动构建镜像.html">
            
                    
                        <b>1.9.36.5.</b>
                    
                    自动构建镜像
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.36.6" data-path="../镜像/镜像加速方案.html">
            
                <a href="../镜像/镜像加速方案.html">
            
                    
                        <b>1.9.36.6.</b>
                    
                    镜像加速方案
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.36.7" data-path="../镜像/镜像延迟加载技术解析.html">
            
                <a href="../镜像/镜像延迟加载技术解析.html">
            
                    
                        <b>1.9.36.7.</b>
                    
                    镜像延迟加载技术解析
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../../math/">
            
                <a href="../../math/">
            
                    
                        <b>1.10.</b>
                    
                    Math
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../../math/readme.html">
            
                <a href="../../math/readme.html">
            
                    
                        <b>1.10.1.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="../../math/泊松分布.html">
            
                <a href="../../math/泊松分布.html">
            
                    
                        <b>1.10.2.</b>
                    
                    泊松分布
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../../效率/">
            
                <a href="../../效率/">
            
                    
                        <b>1.11.</b>
                    
                    效率
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="../../效率/cat.html">
            
                <a href="../../效率/cat.html">
            
                    
                        <b>1.11.1.</b>
                    
                    Cat
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2" data-path="../../效率/docker volume clean.html">
            
                <a href="../../效率/docker volume clean.html">
            
                    
                        <b>1.11.2.</b>
                    
                    Docker Volume Clean
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.3" data-path="../../效率/git book.html">
            
                <a href="../../效率/git book.html">
            
                    
                        <b>1.11.3.</b>
                    
                    Git Book
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.4" data-path="../../效率/git.html">
            
                <a href="../../效率/git.html">
            
                    
                        <b>1.11.4.</b>
                    
                    Git
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.5" data-path="../../效率/linux command.html">
            
                <a href="../../效率/linux command.html">
            
                    
                        <b>1.11.5.</b>
                    
                    Linux Command
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.6" data-path="../../效率/linux 内核.html">
            
                <a href="../../效率/linux 内核.html">
            
                    
                        <b>1.11.6.</b>
                    
                    Linux 内核
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.7" data-path="../../效率/macos path.html">
            
                <a href="../../效率/macos path.html">
            
                    
                        <b>1.11.7.</b>
                    
                    Macos Path
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.8" data-path="../../效率/nfs.html">
            
                <a href="../../效率/nfs.html">
            
                    
                        <b>1.11.8.</b>
                    
                    Nfs
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.9" data-path="../../效率/nginx.html">
            
                <a href="../../效率/nginx.html">
            
                    
                        <b>1.11.9.</b>
                    
                    Nginx
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.10" data-path="../../效率/nginx2.html">
            
                <a href="../../效率/nginx2.html">
            
                    
                        <b>1.11.10.</b>
                    
                    Nginx2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.11" data-path="../../效率/oauth2.html">
            
                <a href="../../效率/oauth2.html">
            
                    
                        <b>1.11.11.</b>
                    
                    Oauth2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.12" data-path="../../效率/ovftool.html">
            
                <a href="../../效率/ovftool.html">
            
                    
                        <b>1.11.12.</b>
                    
                    Ovftool
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.13" data-path="../../效率/readme.html">
            
                <a href="../../效率/readme.html">
            
                    
                        <b>1.11.13.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.14" data-path="../../效率/sed.html">
            
                <a href="../../效率/sed.html">
            
                    
                        <b>1.11.14.</b>
                    
                    Sed
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.15" data-path="../../效率/shell_judge.html">
            
                <a href="../../效率/shell_judge.html">
            
                    
                        <b>1.11.15.</b>
                    
                    Shell Judge
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.16" data-path="../../效率/sshpass.html">
            
                <a href="../../效率/sshpass.html">
            
                    
                        <b>1.11.16.</b>
                    
                    Sshpass
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.17" data-path="../../效率/telepresence.html">
            
                <a href="../../效率/telepresence.html">
            
                    
                        <b>1.11.17.</b>
                    
                    Telepresence
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.18" data-path="../../效率/typora.html">
            
                <a href="../../效率/typora.html">
            
                    
                        <b>1.11.18.</b>
                    
                    Typora
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.19" data-path="../../效率/url encode.html">
            
                <a href="../../效率/url encode.html">
            
                    
                        <b>1.11.19.</b>
                    
                    Url Encode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.20" data-path="../../效率/vim.html">
            
                <a href="../../效率/vim.html">
            
                    
                        <b>1.11.20.</b>
                    
                    Vim
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.21" data-path="../../效率/yum.html">
            
                <a href="../../效率/yum.html">
            
                    
                        <b>1.11.21.</b>
                    
                    Yum
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.22" data-path="../../效率/内网穿透.html">
            
                <a href="../../效率/内网穿透.html">
            
                    
                        <b>1.11.22.</b>
                    
                    内网穿透
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.23" data-path="../../效率/科学上网.html">
            
                <a href="../../效率/科学上网.html">
            
                    
                        <b>1.11.23.</b>
                    
                    科学上网
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.24" data-path="../../效率/证书制作.html">
            
                <a href="../../效率/证书制作.html">
            
                    
                        <b>1.11.24.</b>
                    
                    证书制作
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" >
            
                <span>
            
                    
                        <b>1.12.</b>
                    
                    杂谈
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.12.1" data-path="../../杂谈/论好文章和烂文章.html">
            
                <a href="../../杂谈/论好文章和烂文章.html">
            
                    
                        <b>1.12.1.</b>
                    
                    论好文章和烂文章
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../../测试/">
            
                <a href="../../测试/">
            
                    
                        <b>1.13.</b>
                    
                    测试
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.1" data-path="../../测试/ginkgo/">
            
                <a href="../../测试/ginkgo/">
            
                    
                        <b>1.13.1.</b>
                    
                    Ginkgo
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.1.1" data-path="../../测试/ginkgo/ginkgo.html">
            
                <a href="../../测试/ginkgo/ginkgo.html">
            
                    
                        <b>1.13.1.1.</b>
                    
                    Ginkgo
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.1.2" data-path="../../测试/ginkgo/ginkgo_cmd.html">
            
                <a href="../../测试/ginkgo/ginkgo_cmd.html">
            
                    
                        <b>1.13.1.2.</b>
                    
                    Ginkgo Cmd
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.1.3" data-path="../../测试/ginkgo/readme.html">
            
                <a href="../../测试/ginkgo/readme.html">
            
                    
                        <b>1.13.1.3.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13.2" data-path="../../测试/golang-test.html">
            
                <a href="../../测试/golang-test.html">
            
                    
                        <b>1.13.2.</b>
                    
                    Golang Test
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.3" data-path="../../测试/http测试.html">
            
                <a href="../../测试/http测试.html">
            
                    
                        <b>1.13.3.</b>
                    
                    Http测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.4" data-path="../../测试/readme.html">
            
                <a href="../../测试/readme.html">
            
                    
                        <b>1.13.4.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.5" data-path="../../测试/其他功能.html">
            
                <a href="../../测试/其他功能.html">
            
                    
                        <b>1.13.5.</b>
                    
                    其他功能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.6" data-path="../../测试/单元测试.html">
            
                <a href="../../测试/单元测试.html">
            
                    
                        <b>1.13.6.</b>
                    
                    单元测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.7" data-path="../../测试/单元测试2.html">
            
                <a href="../../测试/单元测试2.html">
            
                    
                        <b>1.13.7.</b>
                    
                    单元测试2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.8" data-path="../../测试/基准测试.html">
            
                <a href="../../测试/基准测试.html">
            
                    
                        <b>1.13.8.</b>
                    
                    基准测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.9" data-path="../../测试/子测试与子基准测试.html">
            
                <a href="../../测试/子测试与子基准测试.html">
            
                    
                        <b>1.13.9.</b>
                    
                    子测试与子基准测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.10" data-path="../../测试/并行测试.html">
            
                <a href="../../测试/并行测试.html">
            
                    
                        <b>1.13.10.</b>
                    
                    并行测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.11" data-path="../../测试/质量检查/">
            
                <a href="../../测试/质量检查/">
            
                    
                        <b>1.13.11.</b>
                    
                    质量检查
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.11.1" data-path="../../测试/质量检查/Sonar.html">
            
                <a href="../../测试/质量检查/Sonar.html">
            
                    
                        <b>1.13.11.1.</b>
                    
                    Sonar
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.11.2" data-path="../../测试/质量检查/go_lint.html">
            
                <a href="../../测试/质量检查/go_lint.html">
            
                    
                        <b>1.13.11.2.</b>
                    
                    Go Lint
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.11.3" data-path="../../测试/质量检查/readme.html">
            
                <a href="../../测试/质量检查/readme.html">
            
                    
                        <b>1.13.11.3.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="../../规范/">
            
                <a href="../../规范/">
            
                    
                        <b>1.14.</b>
                    
                    规范
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.14.1" data-path="../../规范/CodeReviewComments.html">
            
                <a href="../../规范/CodeReviewComments.html">
            
                    
                        <b>1.14.1.</b>
                    
                    CodeReviewComments
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.2" data-path="../../规范/git规范.html">
            
                <a href="../../规范/git规范.html">
            
                    
                        <b>1.14.2.</b>
                    
                    Git规范
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.3" data-path="../../规范/golang 代码规范.html">
            
                <a href="../../规范/golang 代码规范.html">
            
                    
                        <b>1.14.3.</b>
                    
                    Golang 代码规范
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.4" data-path="../../规范/readme.html">
            
                <a href="../../规范/readme.html">
            
                    
                        <b>1.14.4.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.5" data-path="../../规范/代码走读.html">
            
                <a href="../../规范/代码走读.html">
            
                    
                        <b>1.14.5.</b>
                    
                    代码走读
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="../../设计模式/">
            
                <a href="../../设计模式/">
            
                    
                        <b>1.15.</b>
                    
                    设计模式
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.15.1" data-path="../../设计模式/readme.html">
            
                <a href="../../设计模式/readme.html">
            
                    
                        <b>1.15.1.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.2" data-path="../../设计模式/创建模型/">
            
                <a href="../../设计模式/创建模型/">
            
                    
                        <b>1.15.2.</b>
                    
                    创建模型
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.15.2.1" data-path="../../设计模式/创建模型/readme.html">
            
                <a href="../../设计模式/创建模型/readme.html">
            
                    
                        <b>1.15.2.1.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.2.2" data-path="../../设计模式/创建模型/创建者模型.html">
            
                <a href="../../设计模式/创建模型/创建者模型.html">
            
                    
                        <b>1.15.2.2.</b>
                    
                    创建者模型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.2.3" data-path="../../设计模式/创建模型/单例模式.html">
            
                <a href="../../设计模式/创建模型/单例模式.html">
            
                    
                        <b>1.15.2.3.</b>
                    
                    单例模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.2.4" data-path="../../设计模式/创建模型/原型模式.html">
            
                <a href="../../设计模式/创建模型/原型模式.html">
            
                    
                        <b>1.15.2.4.</b>
                    
                    原型模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.2.5" data-path="../../设计模式/创建模型/工厂方法.html">
            
                <a href="../../设计模式/创建模型/工厂方法.html">
            
                    
                        <b>1.15.2.5.</b>
                    
                    工厂方法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.2.6" data-path="../../设计模式/创建模型/抽象工厂.html">
            
                <a href="../../设计模式/创建模型/抽象工厂.html">
            
                    
                        <b>1.15.2.6.</b>
                    
                    抽象工厂
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.2.7" data-path="../../设计模式/创建模型/简单工厂.html">
            
                <a href="../../设计模式/创建模型/简单工厂.html">
            
                    
                        <b>1.15.2.7.</b>
                    
                    简单工厂
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.15.3" data-path="../../设计模式/结构型模型/">
            
                <a href="../../设计模式/结构型模型/">
            
                    
                        <b>1.15.3.</b>
                    
                    结构型模型
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.15.3.1" data-path="../../设计模式/结构型模型/readme.html">
            
                <a href="../../设计模式/结构型模型/readme.html">
            
                    
                        <b>1.15.3.1.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.3.2" data-path="../../设计模式/结构型模型/享元模式.html">
            
                <a href="../../设计模式/结构型模型/享元模式.html">
            
                    
                        <b>1.15.3.2.</b>
                    
                    享元模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.3.3" data-path="../../设计模式/结构型模型/代理模式.html">
            
                <a href="../../设计模式/结构型模型/代理模式.html">
            
                    
                        <b>1.15.3.3.</b>
                    
                    代理模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.3.4" data-path="../../设计模式/结构型模型/外观模式.html">
            
                <a href="../../设计模式/结构型模型/外观模式.html">
            
                    
                        <b>1.15.3.4.</b>
                    
                    外观模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.3.5" data-path="../../设计模式/结构型模型/桥模式.html">
            
                <a href="../../设计模式/结构型模型/桥模式.html">
            
                    
                        <b>1.15.3.5.</b>
                    
                    桥模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.3.6" data-path="../../设计模式/结构型模型/组合模式.html">
            
                <a href="../../设计模式/结构型模型/组合模式.html">
            
                    
                        <b>1.15.3.6.</b>
                    
                    组合模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.3.7" data-path="../../设计模式/结构型模型/装饰模式.html">
            
                <a href="../../设计模式/结构型模型/装饰模式.html">
            
                    
                        <b>1.15.3.7.</b>
                    
                    装饰模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.3.8" data-path="../../设计模式/结构型模型/适配器模式.html">
            
                <a href="../../设计模式/结构型模型/适配器模式.html">
            
                    
                        <b>1.15.3.8.</b>
                    
                    适配器模式
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.15.4" data-path="../../设计模式/行为型模型/">
            
                <a href="../../设计模式/行为型模型/">
            
                    
                        <b>1.15.4.</b>
                    
                    行为型模型
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.15.4.1" data-path="../../设计模式/行为型模型/readme.html">
            
                <a href="../../设计模式/行为型模型/readme.html">
            
                    
                        <b>1.15.4.1.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4.2" data-path="../../设计模式/行为型模型/中介者模式.html">
            
                <a href="../../设计模式/行为型模型/中介者模式.html">
            
                    
                        <b>1.15.4.2.</b>
                    
                    中介者模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4.3" data-path="../../设计模式/行为型模型/命令模式.html">
            
                <a href="../../设计模式/行为型模型/命令模式.html">
            
                    
                        <b>1.15.4.3.</b>
                    
                    命令模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4.4" data-path="../../设计模式/行为型模型/备忘录模式.html">
            
                <a href="../../设计模式/行为型模型/备忘录模式.html">
            
                    
                        <b>1.15.4.4.</b>
                    
                    备忘录模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4.5" data-path="../../设计模式/行为型模型/模板方法模式.html">
            
                <a href="../../设计模式/行为型模型/模板方法模式.html">
            
                    
                        <b>1.15.4.5.</b>
                    
                    模板方法模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4.6" data-path="../../设计模式/行为型模型/状态模式.html">
            
                <a href="../../设计模式/行为型模型/状态模式.html">
            
                    
                        <b>1.15.4.6.</b>
                    
                    状态模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4.7" data-path="../../设计模式/行为型模型/策略模式.html">
            
                <a href="../../设计模式/行为型模型/策略模式.html">
            
                    
                        <b>1.15.4.7.</b>
                    
                    策略模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4.8" data-path="../../设计模式/行为型模型/职责链模式.html">
            
                <a href="../../设计模式/行为型模型/职责链模式.html">
            
                    
                        <b>1.15.4.8.</b>
                    
                    职责链模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4.9" data-path="../../设计模式/行为型模型/观察者模式.html">
            
                <a href="../../设计模式/行为型模型/观察者模式.html">
            
                    
                        <b>1.15.4.9.</b>
                    
                    观察者模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4.10" data-path="../../设计模式/行为型模型/解释器模式.html">
            
                <a href="../../设计模式/行为型模型/解释器模式.html">
            
                    
                        <b>1.15.4.10.</b>
                    
                    解释器模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4.11" data-path="../../设计模式/行为型模型/访问者模式.html">
            
                <a href="../../设计模式/行为型模型/访问者模式.html">
            
                    
                        <b>1.15.4.11.</b>
                    
                    访问者模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4.12" data-path="../../设计模式/行为型模型/迭代器模式.html">
            
                <a href="../../设计模式/行为型模型/迭代器模式.html">
            
                    
                        <b>1.15.4.12.</b>
                    
                    迭代器模式
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../.." >Server Side Apply</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-anchor"></i><ul><li><a href="#&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#xFF08;server-side-apply&#xFF09;">&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#xFF08;Server-Side Apply&#xFF09;</a></li><ul><li><a href="#&#x7B80;&#x4ECB;">&#x7B80;&#x4ECB;</a></li><li><a href="#&#x5B57;&#x6BB5;&#x7BA1;&#x7406;">&#x5B57;&#x6BB5;&#x7BA1;&#x7406;</a></li><li><a href="#&#x51B2;&#x7A81;">&#x51B2;&#x7A81;</a></li><li><a href="#&#x7BA1;&#x7406;&#x5668;">&#x7BA1;&#x7406;&#x5668;</a></li><li><a href="#&#x5E94;&#x7528;&#x548C;&#x66F4;&#x65B0;">&#x5E94;&#x7528;&#x548C;&#x66F4;&#x65B0;</a></li><li><a href="#&#x5408;&#x5E76;&#x7B56;&#x7565;">&#x5408;&#x5E76;&#x7B56;&#x7565;</a></li><ul><li><a href="#&#x81EA;&#x5B9A;&#x4E49;&#x8D44;&#x6E90;">&#x81EA;&#x5B9A;&#x4E49;&#x8D44;&#x6E90;</a></li><li><a href="#&#x5728;&#x63A7;&#x5236;&#x5668;&#x4E2D;&#x4F7F;&#x7528;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;">&#x5728;&#x63A7;&#x5236;&#x5668;&#x4E2D;&#x4F7F;&#x7528;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;</a></li><li><a href="#&#x8F6C;&#x79FB;&#x6240;&#x6709;&#x6743;">&#x8F6C;&#x79FB;&#x6240;&#x6709;&#x6743;</a></li></ul><li><a href="#&#x5728;&#x7528;&#x6237;&#x4E4B;&#x95F4;&#x8F6C;&#x79FB;&#x6240;&#x6709;&#x6743;">&#x5728;&#x7528;&#x6237;&#x4E4B;&#x95F4;&#x8F6C;&#x79FB;&#x6240;&#x6709;&#x6743;</a></li><li><a href="#&#x4E0E;&#x5BA2;&#x6237;&#x7AEF;&#x5E94;&#x7528;&#x7684;&#x5BF9;&#x6BD4;">&#x4E0E;&#x5BA2;&#x6237;&#x7AEF;&#x5E94;&#x7528;&#x7684;&#x5BF9;&#x6BD4;</a></li><li><a href="#&#x4ECE;&#x5BA2;&#x6237;&#x7AEF;&#x5E94;&#x7528;&#x5347;&#x7EA7;&#x5230;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;">&#x4ECE;&#x5BA2;&#x6237;&#x7AEF;&#x5E94;&#x7528;&#x5347;&#x7EA7;&#x5230;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;</a></li><li><a href="#&#x4ECE;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#x964D;&#x7EA7;&#x5230;&#x5BA2;&#x6237;&#x7AEF;&#x5E94;&#x7528;">&#x4ECE;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#x964D;&#x7EA7;&#x5230;&#x5BA2;&#x6237;&#x7AEF;&#x5E94;&#x7528;</a></li><li><a href="#api-&#x7AEF;&#x70B9;">API &#x7AEF;&#x70B9;</a></li><li><a href="#&#x6E05;&#x9664;-managedfields">&#x6E05;&#x9664; ManagedFields</a></li><li><a href="#&#x7981;&#x7528;&#x6B64;&#x529F;&#x80FD;">&#x7981;&#x7528;&#x6B64;&#x529F;&#x80FD;</a></li></ul></ul></div><a href="#&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#xFF08;server-side-apply&#xFF09;" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><h1 id="&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#xFF08;server-side-apply&#xFF09;"><a name="&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#xFF08;server-side-apply&#xFF09;" class="anchor-navigation-ex-anchor" href="#&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#xFF08;server-side-apply&#xFF09;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#xFF08;Server-Side Apply&#xFF09;</h1>
<p><strong>FEATURE STATE:</strong> <code>Kubernetes v1.16 [beta]</code></p>
<h2 id="&#x7B80;&#x4ECB;"><a name="&#x7B80;&#x4ECB;" class="anchor-navigation-ex-anchor" href="#&#x7B80;&#x4ECB;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x7B80;&#x4ECB;</h2>
<p>&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#x534F;&#x52A9;&#x7528;&#x6237;&#x3001;&#x63A7;&#x5236;&#x5668;&#x901A;&#x8FC7;&#x58F0;&#x660E;&#x5F0F;&#x914D;&#x7F6E;&#x7684;&#x65B9;&#x5F0F;&#x7BA1;&#x7406;&#x4ED6;&#x4EEC;&#x7684;&#x8D44;&#x6E90;&#x3002; &#x5B83;&#x53D1;&#x9001;&#x5B8C;&#x6574;&#x63CF;&#x8FF0;&#x7684;&#x76EE;&#x6807;&#xFF08;A fully specified intent&#xFF09;&#xFF0C; &#x58F0;&#x660E;&#x5F0F;&#x5730;&#x521B;&#x5EFA;&#x548C;/&#x6216;&#x4FEE;&#x6539; <a href="https://kubernetes.io/zh/docs/concepts/overview/working-with-objects/kubernetes-objects/" target="_blank">&#x5BF9;&#x8C61;</a>&#x3002;</p>
<p>&#x4E00;&#x4E2A;&#x5B8C;&#x6574;&#x63CF;&#x8FF0;&#x7684;&#x76EE;&#x6807;&#x5E76;&#x4E0D;&#x662F;&#x4E00;&#x4E2A;&#x5B8C;&#x6574;&#x7684;&#x5BF9;&#x8C61;&#xFF0C;&#x4EC5;&#x5305;&#x62EC;&#x80FD;&#x4F53;&#x73B0;&#x7528;&#x6237;&#x610F;&#x56FE;&#x7684;&#x5B57;&#x6BB5;&#x548C;&#x503C;&#x3002; &#x8BE5;&#x76EE;&#x6807;&#xFF08;intent&#xFF09;&#x53EF;&#x4EE5;&#x7528;&#x6765;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x65B0;&#x5BF9;&#x8C61;&#xFF0C; &#x4E5F;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x670D;&#x52A1;&#x5668;&#x6765;&#x5B9E;&#x73B0;&#x4E0E;&#x73B0;&#x6709;&#x5BF9;&#x8C61;&#x7684;<a href="https://kubernetes.io/zh/docs/reference/using-api/server-side-apply/#merge-strategy" target="_blank">&#x5408;&#x5E76;</a>&#x3002;</p>
<p>&#x7CFB;&#x7EDF;&#x652F;&#x6301;&#x591A;&#x4E2A;&#x5E94;&#x7528;&#x8005;&#xFF08;appliers&#xFF09;&#x5728;&#x540C;&#x4E00;&#x4E2A;&#x5BF9;&#x8C61;&#x4E0A;&#x5F00;&#x5C55;&#x534F;&#x4F5C;&#x3002;</p>
<p>&#x201C;<a href="https://kubernetes.io/zh/docs/reference/using-api/server-side-apply/#field-management" target="_blank">&#x5B57;&#x6BB5;&#x7BA1;&#x7406;&#xFF08;field management&#xFF09;</a>&#x201D;&#x673A;&#x5236;&#x8FFD;&#x8E2A;&#x5BF9;&#x8C61;&#x5B57;&#x6BB5;&#x7684;&#x53D8;&#x5316;&#x3002; &#x5F53;&#x4E00;&#x4E2A;&#x5B57;&#x6BB5;&#x503C;&#x6539;&#x53D8;&#x65F6;&#xFF0C;&#x5176;&#x6240;&#x6709;&#x6743;&#x4ECE;&#x5F53;&#x524D;&#x7BA1;&#x7406;&#x5668;&#xFF08;manager&#xFF09;&#x8F6C;&#x79FB;&#x5230;&#x65BD;&#x52A0;&#x53D8;&#x66F4;&#x7684;&#x7BA1;&#x7406;&#x5668;&#x3002; &#x5F53;&#x5C1D;&#x8BD5;&#x5C06;&#x65B0;&#x914D;&#x7F6E;&#x5E94;&#x7528;&#x5230;&#x4E00;&#x4E2A;&#x5BF9;&#x8C61;&#x65F6;&#xFF0C;&#x5982;&#x679C;&#x5B57;&#x6BB5;&#x6709;&#x4E0D;&#x540C;&#x7684;&#x503C;&#xFF0C;&#x4E14;&#x7531;&#x5176;&#x4ED6;&#x7BA1;&#x7406;&#x5668;&#x7BA1;&#x7406;&#xFF0C; &#x5C06;&#x4F1A;&#x5F15;&#x53D1;<a href="https://kubernetes.io/zh/docs/reference/using-api/server-side-apply/#conflicts" target="_blank">&#x51B2;&#x7A81;</a>&#x3002; &#x51B2;&#x7A81;&#x5F15;&#x53D1;&#x8B66;&#x544A;&#x4FE1;&#x53F7;&#xFF1A;&#x6B64;&#x64CD;&#x4F5C;&#x53EF;&#x80FD;&#x62B9;&#x6389;&#x5176;&#x4ED6;&#x534F;&#x4F5C;&#x8005;&#x7684;&#x4FEE;&#x6539;&#x3002; &#x51B2;&#x7A81;&#x53EF;&#x4EE5;&#x88AB;&#x523B;&#x610F;&#x5FFD;&#x7565;&#xFF0C;&#x8FD9;&#x79CD;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;&#x503C;&#x5C06;&#x4F1A;&#x88AB;&#x6539;&#x5199;&#xFF0C;&#x6240;&#x6709;&#x6743;&#x4E5F;&#x4F1A;&#x53D1;&#x751F;&#x8F6C;&#x79FB;&#x3002;</p>
<p>&#x5F53;&#x4F60;&#x4ECE;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4E2D;&#x5220;&#x9664;&#x4E00;&#x4E2A;&#x5B57;&#x6BB5;&#xFF0C;&#x7136;&#x540E;&#x5E94;&#x7528;&#x8FD9;&#x4E2A;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#xFF0C; &#x8FD9;&#x5C06;&#x89E6;&#x53D1;&#x670D;&#x52A1;&#x7AEF;&#x5E94;&#x7528;&#x68C0;&#x67E5;&#x6B64;&#x5B57;&#x6BB5;&#x662F;&#x5426;&#x8FD8;&#x88AB;&#x5176;&#x4ED6;&#x5B57;&#x6BB5;&#x7BA1;&#x7406;&#x5668;&#x62E5;&#x6709;&#x3002; &#x5982;&#x679C;&#x6CA1;&#x6709;&#xFF0C;&#x90A3;&#x5C31;&#x4ECE;&#x6D3B;&#x52A8;&#x5BF9;&#x8C61;&#x4E2D;&#x5220;&#x9664;&#x8BE5;&#x5B57;&#x6BB5;&#xFF1B;&#x5982;&#x679C;&#x6709;&#xFF0C;&#x90A3;&#x5C31;&#x91CD;&#x7F6E;&#x4E3A;&#x9ED8;&#x8BA4;&#x503C;&#x3002; &#x8BE5;&#x89C4;&#x5219;&#x540C;&#x6837;&#x9002;&#x7528;&#x4E8E; list &#x6216; map &#x9879;&#x76EE;&#x3002;</p>
<p><strong>&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#x65E2;&#x662F;&#x539F;&#x6709; <code>kubectl apply</code> &#x7684;&#x66FF;&#x4EE3;&#x54C1;&#xFF0C; &#x4E5F;&#x662F;&#x63A7;&#x5236;&#x5668;&#x53D1;&#x5E03;&#x81EA;&#x8EAB;&#x53D8;&#x5316;&#x7684;&#x4E00;&#x4E2A;&#x7B80;&#x5316;&#x673A;&#x5236;&#x3002;</strong></p>
<p>&#x5982;&#x679C;&#x4F60;&#x542F;&#x7528;&#x4E86;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#xFF0C;&#x63A7;&#x5236;&#x5E73;&#x9762;&#x5C31;&#x4F1A;&#x8DDF;&#x8E2A;&#x88AB;&#x6240;&#x6709;&#x65B0;&#x521B;&#x5EFA;&#x5BF9;&#x8C61;&#x7BA1;&#x7406;&#x7684;&#x5B57;&#x6BB5;&#x3002;</p>
<h2 id="&#x5B57;&#x6BB5;&#x7BA1;&#x7406;"><a name="&#x5B57;&#x6BB5;&#x7BA1;&#x7406;" class="anchor-navigation-ex-anchor" href="#&#x5B57;&#x6BB5;&#x7BA1;&#x7406;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5B57;&#x6BB5;&#x7BA1;&#x7406;</h2>
<p>&#x76F8;&#x5BF9;&#x4E8E;&#x901A;&#x8FC7; <code>kubectl</code> &#x7BA1;&#x7406;&#x7684;&#x6CE8;&#x89E3; <code>last-applied</code>&#xFF0C; &#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#x4F7F;&#x7528;&#x4E86;&#x4E00;&#x79CD;&#x66F4;&#x5177;&#x58F0;&#x660E;&#x5F0F;&#x7279;&#x70B9;&#x7684;&#x65B9;&#x6CD5;&#xFF1A; &#x5B83;&#x6301;&#x7EED;&#x7684;&#x8DDF;&#x8E2A;&#x7528;&#x6237;&#x7684;&#x5B57;&#x6BB5;&#x7BA1;&#x7406;&#xFF0C;&#x800C;&#x4E0D;&#x4EC5;&#x4EC5;&#x662F;&#x6700;&#x540E;&#x4E00;&#x6B21;&#x7684;&#x6267;&#x884C;&#x72B6;&#x6001;&#x3002; &#x8FD9;&#x5C31;&#x610F;&#x5473;&#x7740;&#xFF0C;&#x4F5C;&#x4E3A;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#x7684;&#x4E00;&#x4E2A;&#x526F;&#x4F5C;&#x7528;&#xFF0C; &#x5173;&#x4E8E;&#x7528;&#x54EA;&#x4E00;&#x4E2A;&#x5B57;&#x6BB5;&#x7BA1;&#x7406;&#x5668;&#x8D1F;&#x8D23;&#x7BA1;&#x7406;&#x5BF9;&#x8C61;&#x4E2D;&#x7684;&#x54EA;&#x4E2A;&#x5B57;&#x6BB5;&#x7684;&#x8FD9;&#x7C7B;&#x4FE1;&#x606F;&#xFF0C;&#x90FD;&#x8981;&#x5BF9;&#x5916;&#x754C;&#x5F00;&#x653E;&#x4E86;&#x3002;</p>
<p>&#x7528;&#x6237;&#x7BA1;&#x7406;&#x5B57;&#x6BB5;&#x8FD9;&#x4EF6;&#x4E8B;&#xFF0C;&#x5728;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#x7684;&#x573A;&#x666F;&#x4E2D;&#xFF0C;&#x610F;&#x5473;&#x7740;&#x7528;&#x6237;&#x4F9D;&#x8D56;&#x5E76;&#x671F;&#x671B;&#x5B57;&#x6BB5;&#x7684;&#x503C;&#x4E0D;&#x8981;&#x6539;&#x53D8;&#x3002; &#x6700;&#x540E;&#x4E00;&#x6B21;&#x5BF9;&#x5B57;&#x6BB5;&#x503C;&#x505A;&#x51FA;&#x65AD;&#x8A00;&#x7684;&#x7528;&#x6237;&#x5C06;&#x88AB;&#x8BB0;&#x5F55;&#x5230;&#x5F53;&#x524D;&#x5B57;&#x6BB5;&#x7BA1;&#x7406;&#x5668;&#x3002; &#x8FD9;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x53D1;&#x9001; <code>POST</code>&#x3001; <code>PUT</code>&#x3001; &#x6216;&#x975E;&#x5E94;&#x7528;&#xFF08;non-apply&#xFF09;&#x65B9;&#x5F0F;&#x7684; <code>PATCH</code> &#x7B49;&#x547D;&#x4EE4;&#x6765;&#x4FEE;&#x6539;&#x5B57;&#x6BB5;&#x503C;&#x7684;&#x65B9;&#x5F0F;&#x5B9E;&#x73B0;&#xFF0C; &#x6216;&#x901A;&#x8FC7;&#x628A;&#x5B57;&#x6BB5;&#x653E;&#x5728;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4E2D;&#xFF0C;&#x7136;&#x540E;&#x53D1;&#x9001;&#x5230;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#x7684;&#x670D;&#x52A1;&#x7AEF;&#x70B9;&#x7684;&#x65B9;&#x5F0F;&#x5B9E;&#x73B0;&#x3002; &#x5F53;&#x4F7F;&#x7528;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#xFF0C;&#x5C1D;&#x8BD5;&#x7740;&#x53BB;&#x6539;&#x53D8;&#x4E00;&#x4E2A;&#x88AB;&#x5176;&#x4ED6;&#x4EBA;&#x7BA1;&#x7406;&#x7684;&#x5B57;&#x6BB5;&#xFF0C; &#x4F1A;&#x5BFC;&#x81F4;&#x8BF7;&#x6C42;&#x88AB;&#x62D2;&#x7EDD;&#xFF08;&#x5728;&#x6CA1;&#x6709;&#x8BBE;&#x7F6E;&#x5F3A;&#x5236;&#x6267;&#x884C;&#x65F6;&#xFF0C;&#x53C2;&#x89C1;<a href="https://kubernetes.io/zh/docs/reference/using-api/server-side-apply/#conflicts" target="_blank">&#x51B2;&#x7A81;</a>&#xFF09;&#x3002;</p>
<p>&#x5982;&#x679C;&#x4E24;&#x4E2A;&#x6216;&#x4EE5;&#x4E0A;&#x7684;&#x5E94;&#x7528;&#x8005;&#x5747;&#x628A;&#x540C;&#x4E00;&#x4E2A;&#x5B57;&#x6BB5;&#x8BBE;&#x7F6E;&#x4E3A;&#x76F8;&#x540C;&#x503C;&#xFF0C;&#x4ED6;&#x4EEC;&#x5C06;&#x5171;&#x4EAB;&#x6B64;&#x5B57;&#x6BB5;&#x7684;&#x6240;&#x6709;&#x6743;&#x3002; &#x540E;&#x7EED;&#x4EFB;&#x4F55;&#x6539;&#x53D8;&#x5171;&#x4EAB;&#x5B57;&#x6BB5;&#x503C;&#x7684;&#x5C1D;&#x8BD5;&#xFF0C;&#x4E0D;&#x7BA1;&#x7531;&#x90A3;&#x4E2A;&#x5E94;&#x7528;&#x8005;&#x53D1;&#x8D77;&#xFF0C;&#x90FD;&#x4F1A;&#x5BFC;&#x81F4;&#x51B2;&#x7A81;&#x3002; &#x5171;&#x4EAB;&#x5B57;&#x6BB5;&#x7684;&#x6240;&#x6709;&#x8005;&#x53EF;&#x4EE5;&#x653E;&#x5F03;&#x5B57;&#x6BB5;&#x7684;&#x6240;&#x6709;&#x6743;&#xFF0C;&#x8FD9;&#x53EA;&#x9700;&#x4ECE;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4E2D;&#x5220;&#x9664;&#x8BE5;&#x5B57;&#x6BB5;&#x5373;&#x53EF;&#x3002;</p>
<p>&#x5B57;&#x6BB5;&#x7BA1;&#x7406;&#x7684;&#x4FE1;&#x606F;&#x5B58;&#x50A8;&#x5728; <code>managedFields</code> &#x5B57;&#x6BB5;&#x4E2D;&#xFF0C;&#x8BE5;&#x5B57;&#x6BB5;&#x662F;&#x5BF9;&#x8C61;&#x7684; <a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.21/#objectmeta-v1-meta" target="_blank"><code>metadata</code></a>&#x4E2D;&#x7684;&#x4E00;&#x90E8;&#x5206;&#x3002;</p>
<p>&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#x521B;&#x5EFA;&#x5BF9;&#x8C61;&#x7684;&#x7B80;&#x5355;&#x793A;&#x4F8B;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre class="language-"><code class="lang-yaml"><span class="token key atrule">apiVersion</span><span class="token punctuation">:</span> v1
<span class="token key atrule">kind</span><span class="token punctuation">:</span> ConfigMap
<span class="token key atrule">metadata</span><span class="token punctuation">:</span>
  <span class="token key atrule">name</span><span class="token punctuation">:</span> test<span class="token punctuation">-</span>cm
  <span class="token key atrule">namespace</span><span class="token punctuation">:</span> default
  <span class="token key atrule">labels</span><span class="token punctuation">:</span>
    <span class="token key atrule">test-label</span><span class="token punctuation">:</span> test
  <span class="token key atrule">managedFields</span><span class="token punctuation">:</span>
  <span class="token punctuation">-</span> <span class="token key atrule">manager</span><span class="token punctuation">:</span> kubectl
    <span class="token key atrule">operation</span><span class="token punctuation">:</span> Apply
    <span class="token key atrule">apiVersion</span><span class="token punctuation">:</span> v1
    <span class="token key atrule">time</span><span class="token punctuation">:</span> <span class="token string">&quot;2010-10-10T0:00:00Z&quot;</span>
    <span class="token key atrule">fieldsType</span><span class="token punctuation">:</span> FieldsV1
    <span class="token key atrule">fieldsV1</span><span class="token punctuation">:</span>
      <span class="token key atrule">f:metadata</span><span class="token punctuation">:</span>
        <span class="token key atrule">f:labels</span><span class="token punctuation">:</span>
          <span class="token key atrule">f:test-label</span><span class="token punctuation">:</span> <span class="token punctuation">{</span><span class="token punctuation">}</span>
      <span class="token key atrule">f:data</span><span class="token punctuation">:</span>
        <span class="token key atrule">f:key</span><span class="token punctuation">:</span> <span class="token punctuation">{</span><span class="token punctuation">}</span>
<span class="token key atrule">data</span><span class="token punctuation">:</span>
  <span class="token key atrule">key</span><span class="token punctuation">:</span> some value
</code></pre>
<p>&#x4E0A;&#x8FF0;&#x5BF9;&#x8C61;&#x5728; <code>metadata.managedFields</code> &#x4E2D;&#x5305;&#x542B;&#x4E86;&#x552F;&#x4E00;&#x7684;&#x7BA1;&#x7406;&#x5668;&#x3002; &#x7BA1;&#x7406;&#x5668;&#x7531;&#x7BA1;&#x7406;&#x5B9E;&#x4F53;&#x81EA;&#x8EAB;&#x7684;&#x57FA;&#x672C;&#x4FE1;&#x606F;&#x7EC4;&#x6210;&#xFF0C;&#x6BD4;&#x5982;&#x64CD;&#x4F5C;&#x7C7B;&#x578B;&#x3001;API &#x7248;&#x672C;&#x3001;&#x4EE5;&#x53CA;&#x5B83;&#x7BA1;&#x7406;&#x7684;&#x5B57;&#x6BB5;&#x3002;</p>
<blockquote>
<p><strong>&#x8BF4;&#x660E;&#xFF1A;</strong> &#x8BE5;&#x5B57;&#x6BB5;&#x7531; API &#x670D;&#x52A1;&#x5668;&#x7BA1;&#x7406;&#xFF0C;&#x7528;&#x6237;&#x4E0D;&#x5E94;&#x8BE5;&#x6539;&#x52A8;&#x5B83;&#x3002;</p>
</blockquote>
<p>&#x4E0D;&#x8FC7;&#xFF0C;&#x6267;&#x884C; <code>Update</code> &#x64CD;&#x4F5C;&#x4FEE;&#x6539; <code>metadata.managedFields</code> &#x4E5F;&#x662F;&#x53EF;&#x5B9E;&#x73B0;&#x7684;&#x3002; &#x5F3A;&#x70C8;&#x4E0D;&#x9F13;&#x52B1;&#x8FD9;&#x4E48;&#x505A;&#xFF0C;&#x4F46;&#x5F53;&#x53D1;&#x751F;&#x5982;&#x4E0B;&#x60C5;&#x51B5;&#x65F6;&#xFF0C; &#x6BD4;&#x5982; <code>managedFields</code> &#x8FDB;&#x5165;&#x4E0D;&#x4E00;&#x81F4;&#x7684;&#x72B6;&#x6001;&#xFF08;&#x663E;&#x7136;&#x4E0D;&#x5E94;&#x8BE5;&#x53D1;&#x751F;&#x8FD9;&#x79CD;&#x60C5;&#x51B5;&#xFF09;&#xFF0C; &#x8FD9;&#x4E48;&#x505A;&#x4E5F;&#x662F;&#x4E00;&#x4E2A;&#x5408;&#x7406;&#x7684;&#x5C1D;&#x8BD5;&#x3002;</p>
<p><code>managedFields</code> &#x7684;&#x683C;&#x5F0F;&#x5728; <a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.21/#fieldsv1-v1-meta" target="_blank">API</a> &#x6587;&#x6863;&#x4E2D;&#x63CF;&#x8FF0;&#x3002;</p>
<h2 id="&#x51B2;&#x7A81;"><a name="&#x51B2;&#x7A81;" class="anchor-navigation-ex-anchor" href="#&#x51B2;&#x7A81;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x51B2;&#x7A81;</h2>
<p>&#x51B2;&#x7A81;&#x662F;&#x4E00;&#x79CD;&#x7279;&#x5B9A;&#x7684;&#x9519;&#x8BEF;&#x72B6;&#x6001;&#xFF0C; &#x53D1;&#x751F;&#x5728;&#x6267;&#x884C; <code>Apply</code> &#x6539;&#x53D8;&#x4E00;&#x4E2A;&#x5B57;&#x6BB5;&#xFF0C;&#x800C;&#x6070;&#x5DE7;&#x8BE5;&#x5B57;&#x6BB5;&#x88AB;&#x5176;&#x4ED6;&#x7528;&#x6237;&#x58F0;&#x660E;&#x8FC7;&#x4E3B;&#x6743;&#x65F6;&#x3002; &#x8FD9;&#x53EF;&#x4EE5;&#x9632;&#x6B62;&#x4E00;&#x4E2A;&#x5E94;&#x7528;&#x8005;&#x4E0D;&#x5C0F;&#x5FC3;&#x8986;&#x76D6;&#x6389;&#x5176;&#x4ED6;&#x7528;&#x6237;&#x8BBE;&#x7F6E;&#x7684;&#x503C;&#x3002; &#x51B2;&#x7A81;&#x53D1;&#x751F;&#x65F6;&#xFF0C;&#x5E94;&#x7528;&#x8005;&#x6709;&#x4E09;&#x79CD;&#x529E;&#x6CD5;&#x6765;&#x89E3;&#x51B3;&#x5B83;&#xFF1A;</p>
<ul>
<li><strong>&#x8986;&#x76D6;&#x524D;&#x503C;&#xFF0C;&#x6210;&#x4E3A;&#x552F;&#x4E00;&#x7684;&#x7BA1;&#x7406;&#x5668;&#xFF1A;</strong> &#x5982;&#x679C;&#x6253;&#x7B97;&#x8986;&#x76D6;&#x8BE5;&#x503C;&#xFF08;&#x6216;&#x5E94;&#x7528;&#x8005;&#x662F;&#x4E00;&#x4E2A;&#x81EA;&#x52A8;&#x5316;&#x90E8;&#x4EF6;&#xFF0C;&#x6BD4;&#x5982;&#x63A7;&#x5236;&#x5668;&#xFF09;&#xFF0C; &#x5E94;&#x7528;&#x8005;&#x5E94;&#x8BE5;&#x8BBE;&#x7F6E;&#x67E5;&#x8BE2;&#x53C2;&#x6570; <code>force</code> &#x4E3A; true&#xFF0C;&#x7136;&#x540E;&#x518D;&#x53D1;&#x9001;&#x4E00;&#x6B21;&#x8BF7;&#x6C42;&#x3002; &#x8FD9;&#x5C06;&#x5F3A;&#x5236;&#x64CD;&#x4F5C;&#x6210;&#x529F;&#xFF0C;&#x6539;&#x53D8;&#x5B57;&#x6BB5;&#x7684;&#x503C;&#xFF0C;&#x4ECE;&#x6240;&#x6709;&#x5176;&#x4ED6;&#x7BA1;&#x7406;&#x5668;&#x7684; managedFields &#x6761;&#x76EE;&#x4E2D;&#x5220;&#x9664;&#x6307;&#x5B9A;&#x5B57;&#x6BB5;&#x3002;</li>
<li><strong>&#x4E0D;&#x8986;&#x76D6;&#x524D;&#x503C;&#xFF0C;&#x653E;&#x5F03;&#x7BA1;&#x7406;&#x6743;&#xFF1A;</strong> &#x5982;&#x679C;&#x5E94;&#x7528;&#x8005;&#x4E0D;&#x518D;&#x5173;&#x6CE8;&#x8BE5;&#x5B57;&#x6BB5;&#x7684;&#x503C;&#xFF0C; &#x53EF;&#x4EE5;&#x4ECE;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4E2D;&#x5220;&#x6389;&#x5B83;&#xFF0C;&#x518D;&#x91CD;&#x65B0;&#x53D1;&#x9001;&#x8BF7;&#x6C42;&#x3002; &#x8FD9;&#x5C31;&#x4FDD;&#x6301;&#x4E86;&#x539F;&#x503C;&#x4E0D;&#x53D8;&#xFF0C;&#x5E76;&#x4ECE; managedFields &#x7684;&#x5E94;&#x7528;&#x8005;&#x6761;&#x76EE;&#x4E2D;&#x5220;&#x9664;&#x8BE5;&#x5B57;&#x6BB5;&#x3002;</li>
<li><strong>&#x4E0D;&#x8986;&#x76D6;&#x524D;&#x503C;&#xFF0C;&#x6210;&#x4E3A;&#x5171;&#x4EAB;&#x7684;&#x7BA1;&#x7406;&#x5668;&#xFF1A;</strong> &#x5982;&#x679C;&#x5E94;&#x7528;&#x8005;&#x4ECD;&#x7136;&#x5173;&#x6CE8;&#x5B57;&#x6BB5;&#x503C;&#xFF0C;&#x5E76;&#x4E0D;&#x60F3;&#x8986;&#x76D6;&#x5B83;&#xFF0C; &#x4ED6;&#x4EEC;&#x53EF;&#x4EE5;&#x5728;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4E2D;&#x628A;&#x5B57;&#x6BB5;&#x7684;&#x503C;&#x6539;&#x4E3A;&#x548C;&#x670D;&#x52A1;&#x5668;&#x5BF9;&#x8C61;&#x4E00;&#x6837;&#xFF0C;&#x518D;&#x91CD;&#x65B0;&#x53D1;&#x9001;&#x8BF7;&#x6C42;&#x3002; &#x8FD9;&#x6837;&#x5728;&#x4E0D;&#x6539;&#x53D8;&#x5B57;&#x6BB5;&#x503C;&#x7684;&#x524D;&#x63D0;&#x4E0B;&#xFF0C; &#x5C31;&#x5B9E;&#x73B0;&#x4E86;&#x5B57;&#x6BB5;&#x7BA1;&#x7406;&#x88AB;&#x5E94;&#x7528;&#x8005;&#x548C;&#x6240;&#x6709;&#x58F0;&#x660E;&#x4E86;&#x7BA1;&#x7406;&#x6743;&#x7684;&#x5176;&#x4ED6;&#x7684;&#x5B57;&#x6BB5;&#x7BA1;&#x7406;&#x5668;&#x5171;&#x4EAB;&#x3002;</li>
</ul>
<h2 id="&#x7BA1;&#x7406;&#x5668;"><a name="&#x7BA1;&#x7406;&#x5668;" class="anchor-navigation-ex-anchor" href="#&#x7BA1;&#x7406;&#x5668;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x7BA1;&#x7406;&#x5668;</h2>
<p>&#x7BA1;&#x7406;&#x5668;&#x8BC6;&#x522B;&#x51FA;&#x6B63;&#x5728;&#x4FEE;&#x6539;&#x5BF9;&#x8C61;&#x7684;&#x5DE5;&#x4F5C;&#x6D41;&#x7A0B;&#xFF08;&#x5728;&#x51B2;&#x7A81;&#x65F6;&#x5C24;&#x5176;&#x6709;&#x7528;&#xFF09;, &#x7BA1;&#x7406;&#x5668;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x4FEE;&#x6539;&#x8BF7;&#x6C42;&#x7684;&#x53C2;&#x6570; <code>fieldManager</code> &#x6307;&#x5B9A;&#x3002; &#x867D;&#x7136; kubectl &#x9ED8;&#x8BA4;&#x53D1;&#x5F80; <code>kubectl</code> &#x670D;&#x52A1;&#x7AEF;&#x70B9;&#xFF0C;&#x4F46;&#x5B83;&#x5219;&#x8BF7;&#x6C42;&#x5230;&#x5E94;&#x7528;&#x7684;&#x670D;&#x52A1;&#x7AEF;&#x70B9;&#xFF08;apply endpoint&#xFF09;&#x3002; &#x5BF9;&#x4E8E;&#x5176;&#x4ED6;&#x7684;&#x66F4;&#x65B0;&#xFF0C;&#x5B83;&#x9ED8;&#x8BA4;&#x7684;&#x662F;&#x4ECE;&#x7528;&#x6237;&#x4EE3;&#x7406;&#x8BA1;&#x7B97;&#x5F97;&#x6765;&#x3002;</p>
<h2 id="&#x5E94;&#x7528;&#x548C;&#x66F4;&#x65B0;"><a name="&#x5E94;&#x7528;&#x548C;&#x66F4;&#x65B0;" class="anchor-navigation-ex-anchor" href="#&#x5E94;&#x7528;&#x548C;&#x66F4;&#x65B0;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5E94;&#x7528;&#x548C;&#x66F4;&#x65B0;</h2>
<p>&#x6B64;&#x7279;&#x6027;&#x6D89;&#x53CA;&#x4E24;&#x7C7B;&#x64CD;&#x4F5C;&#xFF0C;&#x5206;&#x522B;&#x662F; <code>Apply</code> &#xFF08;&#x5185;&#x5BB9;&#x7C7B;&#x578B;&#x4E3A; <code>application/apply-patch+yaml</code> &#x7684; <code>PATCH</code> &#x8BF7;&#x6C42;&#xFF09; &#x548C; <code>Update</code> &#xFF08;&#x6240;&#x6709;&#x4FEE;&#x6539;&#x5BF9;&#x8C61;&#x7684;&#x5176;&#x4ED6;&#x64CD;&#x4F5C;&#xFF09;&#x3002; &#x8FD9;&#x4E24;&#x7C7B;&#x64CD;&#x4F5C;&#x90FD;&#x4F1A;&#x66F4;&#x65B0;&#x5B57;&#x6BB5; <code>managedFields</code>&#xFF0C;&#x4F46;&#x884C;&#x4E3A;&#x8868;&#x73B0;&#x6709;&#x4E00;&#x70B9;&#x4E0D;&#x540C;&#x3002;</p>
<blockquote>
<p><strong>&#x8BF4;&#x660E;&#xFF1A;</strong></p>
<p>&#x4E0D;&#x7BA1;&#x4F60;&#x63D0;&#x4EA4;&#x7684;&#x662F; JSON &#x6570;&#x636E;&#x8FD8;&#x662F; YAML &#x6570;&#x636E;&#xFF0C; &#x90FD;&#x8981;&#x4F7F;&#x7528; <code>application/apply-patch+yaml</code> &#x4F5C;&#x4E3A; <code>Content-Type</code> &#x7684;&#x503C;&#x3002;</p>
<p>&#x6240;&#x6709;&#x7684; JSON &#x6587;&#x6863; &#x90FD;&#x662F;&#x5408;&#x6CD5;&#x7684; YAML&#x3002;</p>
</blockquote>
<p>&#x4F8B;&#x5982;&#xFF0C;&#x5728;&#x51B2;&#x7A81;&#x53D1;&#x751F;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x53EA;&#x6709; <code>apply</code> &#x64CD;&#x4F5C;&#x5931;&#x8D25;&#xFF0C;&#x800C; <code>update</code> &#x5219;&#x4E0D;&#x4F1A;&#x3002; &#x6B64;&#x5916;&#xFF0C;<code>apply</code> &#x64CD;&#x4F5C;&#x5FC5;&#x987B;&#x901A;&#x8FC7;&#x63D0;&#x4F9B;&#x4E00;&#x4E2A; <code>fieldManager</code> &#x67E5;&#x8BE2;&#x53C2;&#x6570;&#x6765;&#x6807;&#x8BC6;&#x81EA;&#x8EAB;&#xFF0C; &#x800C;&#x6B64;&#x67E5;&#x8BE2;&#x53C2;&#x6570;&#x5BF9;&#x4E8E; <code>update</code> &#x64CD;&#x4F5C;&#x5219;&#x662F;&#x53EF;&#x9009;&#x7684;&#x3002; &#x6700;&#x540E;&#xFF0C;&#x5F53;&#x4F7F;&#x7528; <code>apply</code> &#x547D;&#x4EE4;&#x65F6;&#xFF0C;&#x4F60;&#x4E0D;&#x80FD;&#x5728;&#x5E94;&#x7528;&#x4E2D;&#x7684;&#x5BF9;&#x8C61;&#x4E2D;&#x6301;&#x6709; <code>managedFields</code>&#x3002;</p>
<p>&#x4E00;&#x4E2A;&#x5305;&#x542B;&#x591A;&#x4E2A;&#x7BA1;&#x7406;&#x5668;&#x7684;&#x5BF9;&#x8C61;&#xFF0C;&#x793A;&#x4F8B;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre class="language-"><code class="lang-yaml"><span class="token key atrule">apiVersion</span><span class="token punctuation">:</span> v1
<span class="token key atrule">kind</span><span class="token punctuation">:</span> ConfigMap
<span class="token key atrule">metadata</span><span class="token punctuation">:</span>
  <span class="token key atrule">name</span><span class="token punctuation">:</span> test<span class="token punctuation">-</span>cm
  <span class="token key atrule">namespace</span><span class="token punctuation">:</span> default
  <span class="token key atrule">labels</span><span class="token punctuation">:</span>
    <span class="token key atrule">test-label</span><span class="token punctuation">:</span> test
  <span class="token key atrule">managedFields</span><span class="token punctuation">:</span>
  <span class="token punctuation">-</span> <span class="token key atrule">manager</span><span class="token punctuation">:</span> kubectl
    <span class="token key atrule">operation</span><span class="token punctuation">:</span> Apply
    <span class="token key atrule">apiVersion</span><span class="token punctuation">:</span> v1
    <span class="token key atrule">fields</span><span class="token punctuation">:</span>
      <span class="token key atrule">f:metadata</span><span class="token punctuation">:</span>
        <span class="token key atrule">f:labels</span><span class="token punctuation">:</span>
          <span class="token key atrule">f:test-label</span><span class="token punctuation">:</span> <span class="token punctuation">{</span><span class="token punctuation">}</span>
  <span class="token punctuation">-</span> <span class="token key atrule">manager</span><span class="token punctuation">:</span> kube<span class="token punctuation">-</span>controller<span class="token punctuation">-</span>manager
    <span class="token key atrule">operation</span><span class="token punctuation">:</span> Update
    <span class="token key atrule">apiVersion</span><span class="token punctuation">:</span> v1
    <span class="token key atrule">time</span><span class="token punctuation">:</span> <span class="token string">&apos;2019-03-30T16:00:00.000Z&apos;</span>
    <span class="token key atrule">fields</span><span class="token punctuation">:</span>
      <span class="token key atrule">f:data</span><span class="token punctuation">:</span>
        <span class="token key atrule">f:key</span><span class="token punctuation">:</span> <span class="token punctuation">{</span><span class="token punctuation">}</span>
<span class="token key atrule">data</span><span class="token punctuation">:</span>
  <span class="token key atrule">key</span><span class="token punctuation">:</span> new value
</code></pre>
<p>&#x5728;&#x8FD9;&#x4E2A;&#x4F8B;&#x5B50;&#x4E2D;&#xFF0C; &#x7B2C;&#x4E8C;&#x4E2A;&#x64CD;&#x4F5C;&#x88AB;&#x7BA1;&#x7406;&#x5668; <code>kube-controller-manager</code> &#x4EE5; <code>Update</code> &#x7684;&#x65B9;&#x5F0F;&#x8FD0;&#x884C;&#x3002; &#x6B64; <code>update</code> &#x66F4;&#x6539; data &#x5B57;&#x6BB5;&#x7684;&#x503C;&#xFF0C; &#x5E76;&#x4F7F;&#x5F97;&#x5B57;&#x6BB5;&#x7BA1;&#x7406;&#x5668;&#x88AB;&#x6539;&#x4E3A; <code>kube-controller-manager</code>&#x3002;</p>
<p>&#x5982;&#x679C;&#x628A; <code>update</code> &#x64CD;&#x4F5C;&#x6539;&#x4E3A; <code>Apply</code>&#xFF0C;&#x90A3;&#x5C31;&#x4F1A;&#x56E0;&#x4E3A;&#x6240;&#x6709;&#x6743;&#x51B2;&#x7A81;&#x7684;&#x539F;&#x56E0;&#xFF0C;&#x5BFC;&#x81F4;&#x64CD;&#x4F5C;&#x5931;&#x8D25;&#x3002;</p>
<h2 id="&#x5408;&#x5E76;&#x7B56;&#x7565;"><a name="&#x5408;&#x5E76;&#x7B56;&#x7565;" class="anchor-navigation-ex-anchor" href="#&#x5408;&#x5E76;&#x7B56;&#x7565;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5408;&#x5E76;&#x7B56;&#x7565;</h2>
<p>&#x7531;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#x5B9E;&#x73B0;&#x7684;&#x5408;&#x5E76;&#x7B56;&#x7565;&#xFF0C;&#x63D0;&#x4F9B;&#x4E86;&#x4E00;&#x4E2A;&#x603B;&#x4F53;&#x66F4;&#x7A33;&#x5B9A;&#x7684;&#x5BF9;&#x8C61;&#x751F;&#x547D;&#x5468;&#x671F;&#x3002; &#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#x8BD5;&#x56FE;&#x4F9D;&#x636E;&#x8C01;&#x7BA1;&#x7406;&#x5B83;&#x4EEC;&#x6765;&#x5408;&#x5E76;&#x5B57;&#x6BB5;&#xFF0C;&#x800C;&#x4E0D;&#x53EA;&#x662F;&#x6839;&#x636E;&#x503C;&#x6765;&#x5426;&#x51B3;&#x3002; &#x8FD9;&#x4E48;&#x505A;&#x662F;&#x4E3A;&#x4E86;&#x591A;&#x4E2A;&#x53C2;&#x4E0E;&#x8005;&#x53EF;&#x4EE5;&#x66F4;&#x7B80;&#x5355;&#x3001;&#x66F4;&#x7A33;&#x5B9A;&#x7684;&#x66F4;&#x65B0;&#x540C;&#x4E00;&#x4E2A;&#x5BF9;&#x8C61;&#xFF0C;&#x4E14;&#x907F;&#x514D;&#x5F15;&#x8D77;&#x610F;&#x5916;&#x5E72;&#x6270;&#x3002;</p>
<p>&#x5F53;&#x7528;&#x6237;&#x53D1;&#x9001;&#x4E00;&#x4E2A;&#x201C;&#x5B8C;&#x6574;&#x63CF;&#x8FF0;&#x7684;&#x76EE;&#x6807;&#x201D;&#x5BF9;&#x8C61;&#x5230;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#x7684;&#x670D;&#x52A1;&#x7AEF;&#x70B9;&#xFF0C; &#x670D;&#x52A1;&#x5668;&#x4F1A;&#x5C06;&#x5B83;&#x548C;&#x6D3B;&#x52A8;&#x5BF9;&#x8C61;&#x505A;&#x4E00;&#x6B21;&#x5408;&#x5E76;&#xFF0C;&#x5982;&#x679C;&#x4E24;&#x8005;&#x4E2D;&#x6709;&#x91CD;&#x590D;&#x5B9A;&#x4E49;&#x7684;&#x503C;&#xFF0C;&#x90A3;&#x5C31;&#x4EE5;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x7684;&#x4E3A;&#x51C6;&#x3002; &#x5982;&#x679C;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4E2D;&#x7684;&#x9879;&#x76EE;&#x96C6;&#x5408;&#x4E0D;&#x662F;&#x6B64;&#x7528;&#x6237;&#x4E0A;&#x4E00;&#x6B21;&#x64CD;&#x4F5C;&#x9879;&#x76EE;&#x7684;&#x8D85;&#x96C6;&#xFF0C; &#x6240;&#x6709;&#x7F3A;&#x5C11;&#x7684;&#x3001;&#x6CA1;&#x6709;&#x5176;&#x4ED6;&#x5E94;&#x7528;&#x8005;&#x7BA1;&#x7406;&#x7684;&#x9879;&#x76EE;&#x4F1A;&#x88AB;&#x5220;&#x9664;&#x3002; &#x5173;&#x4E8E;&#x5408;&#x5E76;&#x65F6;&#x7528;&#x6765;&#x505A;&#x51B3;&#x7B56;&#x7684;&#x5BF9;&#x8C61;&#x89C4;&#x683C;&#x7684;&#x66F4;&#x591A;&#x4FE1;&#x606F;&#xFF0C;&#x53C2;&#x89C1; <a href="https://sigs.k8s.io/structured-merge-diff" target="_blank">sigs.k8s.io/structured-merge-diff</a>.</p>
<p>Kubernetes 1.16 &#x548C; 1.17 &#x4E2D;&#x6DFB;&#x52A0;&#x4E86;&#x4E00;&#x4E9B;&#x6807;&#x8BB0;&#xFF0C; &#x5141;&#x8BB8; API &#x5F00;&#x53D1;&#x4EBA;&#x5458;&#x63CF;&#x8FF0;&#x7531; list&#x3001;map&#x3001;&#x548C; structs &#x652F;&#x6301;&#x7684;&#x5408;&#x5E76;&#x7B56;&#x7565;&#x3002; &#x8FD9;&#x4E9B;&#x6807;&#x8BB0;&#x53EF;&#x5E94;&#x7528;&#x5230;&#x76F8;&#x5E94;&#x7C7B;&#x578B;&#x7684;&#x5BF9;&#x8C61;&#xFF0C;&#x5728; Go &#x6587;&#x4EF6;&#x6216;&#x5728; <a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.21#jsonschemaprops-v1-apiextensions-k8s-io" target="_blank">CRD</a> &#x7684; OpenAPI &#x7684;&#x6A21;&#x5F0F;&#x4E2D;&#x5B9A;&#x4E49;&#xFF1A;</p>
<table>
<thead>
<tr>
<th>Golang &#x6807;&#x8BB0;</th>
<th>OpenAPI extension</th>
<th>&#x53EF;&#x63A5;&#x53D7;&#x7684;&#x503C;</th>
<th>&#x63CF;&#x8FF0;</th>
<th>&#x5F15;&#x5165;&#x7248;&#x672C;</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>//+listType</code></td>
<td><code>x-kubernetes-list-type</code></td>
<td><code>atomic</code>/<code>set</code>/<code>map</code></td>
<td>&#x9002;&#x7528;&#x4E8E; list&#x3002; <code>atomic</code> &#x548C; <code>set</code> &#x9002;&#x7528;&#x4E8E;&#x53EA;&#x5305;&#x542B;&#x6807;&#x91CF;&#x5143;&#x7D20;&#x7684; list&#x3002; <code>map</code> &#x9002;&#x7528;&#x4E8E;&#x53EA;&#x5305;&#x542B;&#x5D4C;&#x5957;&#x7C7B;&#x578B;&#x7684; list&#x3002; &#x5982;&#x679C;&#x914D;&#x7F6E;&#x4E3A; <code>atomic</code>, &#x5408;&#x5E76;&#x65F6;&#x6574;&#x4E2A;&#x5217;&#x8868;&#x4F1A;&#x88AB;&#x66FF;&#x6362;&#x6389;; &#x4EFB;&#x4F55;&#x65F6;&#x5019;&#xFF0C;&#x552F;&#x4E00;&#x7684;&#x7BA1;&#x7406;&#x5668;&#x90FD;&#x628A;&#x5217;&#x8868;&#x4F5C;&#x4E3A;&#x4E00;&#x4E2A;&#x6574;&#x4F53;&#x6765;&#x7BA1;&#x7406;&#x3002;&#x5982;&#x679C;&#x662F; <code>set</code> &#x6216; <code>map</code> &#xFF0C;&#x4E0D;&#x540C;&#x7684;&#x7BA1;&#x7406;&#x5668;&#x4E5F;&#x53EF;&#x4EE5;&#x5206;&#x5F00;&#x7BA1;&#x7406;&#x6761;&#x76EE;&#x3002;</td>
<td>1.16</td>
</tr>
<tr>
<td><code>//+listMapKey</code></td>
<td><code>x-kubernetes-list-map-keys</code></td>
<td>&#x7528;&#x6765;&#x552F;&#x4E00;&#x6807;&#x8BC6;&#x6761;&#x76EE;&#x7684; map keys &#x5207;&#x7247;&#xFF0C;&#x4F8B;&#x5982; <code>[&quot;port&quot;, &quot;protocol&quot;]</code></td>
<td>&#x4EC5;&#x5F53; <code>+listType=map</code> &#x65F6;&#x9002;&#x7528;&#x3002;&#x7EC4;&#x5408;&#x503C;&#x7684;&#x5B57;&#x7B26;&#x4E32;&#x5207;&#x7247;&#x5FC5;&#x987B;&#x552F;&#x4E00;&#x6807;&#x8BC6;&#x5217;&#x8868;&#x4E2D;&#x7684;&#x6761;&#x76EE;&#x3002;&#x5C3D;&#x7BA1;&#x6709;&#x591A;&#x4E2A; key&#xFF0C;<code>listMapKey</code> &#x662F;&#x5355;&#x6570;&#x7684;&#xFF0C;&#x8FD9;&#x662F;&#x56E0;&#x4E3A; key &#x9700;&#x8981;&#x5728; Go &#x7C7B;&#x578B;&#x4E2D;&#x5355;&#x72EC;&#x7684;&#x6307;&#x5B9A;&#x3002;</td>
<td>1.16</td>
</tr>
<tr>
<td><code>//+mapType</code></td>
<td><code>x-kubernetes-map-type</code></td>
<td><code>atomic</code>/<code>granular</code></td>
<td>&#x9002;&#x7528;&#x4E8E; map&#x3002; <code>atomic</code> &#x6307; map &#x53EA;&#x80FD;&#x88AB;&#x5355;&#x4E2A;&#x7684;&#x7BA1;&#x7406;&#x5668;&#x6574;&#x4E2A;&#x7684;&#x66FF;&#x6362;&#x3002; <code>granular</code> &#x6307; map &#x652F;&#x6301;&#x591A;&#x4E2A;&#x7BA1;&#x7406;&#x5668;&#x5404;&#x81EA;&#x66F4;&#x65B0;&#x81EA;&#x5DF1;&#x7684;&#x5B57;&#x6BB5;&#x3002;</td>
<td>1.17</td>
</tr>
<tr>
<td><code>//+structType</code></td>
<td><code>x-kubernetes-map-type</code></td>
<td><code>atomic</code>/<code>granular</code></td>
<td>&#x9002;&#x7528;&#x4E8E; structs&#xFF1B;&#x5426;&#x5219;&#x5C31;&#x50CF; <code>//+mapType</code> &#x6709;&#x76F8;&#x540C;&#x7684;&#x7528;&#x6CD5;&#x548C; openapi &#x6CE8;&#x91CA;.</td>
<td>1.17</td>
</tr>
</tbody>
</table>
<h3 id="&#x81EA;&#x5B9A;&#x4E49;&#x8D44;&#x6E90;"><a name="&#x81EA;&#x5B9A;&#x4E49;&#x8D44;&#x6E90;" class="anchor-navigation-ex-anchor" href="#&#x81EA;&#x5B9A;&#x4E49;&#x8D44;&#x6E90;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x81EA;&#x5B9A;&#x4E49;&#x8D44;&#x6E90;</h3>
<p>&#x9ED8;&#x8BA4;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#x628A;&#x81EA;&#x5B9A;&#x4E49;&#x8D44;&#x6E90;&#x770B;&#x505A;&#x975E;&#x7ED3;&#x6784;&#x5316;&#x6570;&#x636E;&#x3002; &#x6240;&#x6709;&#x7684;&#x952E;&#x503C;&#xFF08;keys&#xFF09;&#x5C31;&#x50CF; struct &#x7684;&#x5B57;&#x6BB5;&#x4E00;&#x6837;&#x88AB;&#x5904;&#x7406;&#xFF0C; &#x6240;&#x6709;&#x7684; list &#x88AB;&#x8BA4;&#x4E3A;&#x662F;&#x539F;&#x5B50;&#x6027;&#x7684;&#x3002;</p>
<p>&#x5982;&#x679C;&#x81EA;&#x5B9A;&#x4E49;&#x8D44;&#x6E90;&#x5B9A;&#x4E49;&#xFF08;Custom Resource Definition&#xFF0C;CRD&#xFF09;&#x5B9A;&#x4E49;&#x4E86;&#x4E00;&#x4E2A; <a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.21#jsonschemaprops-v1-apiextensions-k8s-io" target="_blank">&#x6A21;&#x5F0F;</a>&#xFF0C; &#x5B83;&#x5305;&#x542B;&#x7C7B;&#x4F3C;&#x4EE5;&#x524D;&#x201C;&#x5408;&#x5E76;&#x7B56;&#x7565;&#x201D;&#x7AE0;&#x8282;&#x4E2D;&#x5B9A;&#x4E49;&#x8FC7;&#x7684;&#x6CE8;&#x89E3;&#xFF0C; &#x8FD9;&#x4E9B;&#x6CE8;&#x89E3;&#x5C06;&#x5728;&#x5408;&#x5E76;&#x6B64;&#x7C7B;&#x578B;&#x7684;&#x5BF9;&#x8C61;&#x65F6;&#x4F7F;&#x7528;&#x3002;</p>
<h3 id="&#x5728;&#x63A7;&#x5236;&#x5668;&#x4E2D;&#x4F7F;&#x7528;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;"><a name="&#x5728;&#x63A7;&#x5236;&#x5668;&#x4E2D;&#x4F7F;&#x7528;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;" class="anchor-navigation-ex-anchor" href="#&#x5728;&#x63A7;&#x5236;&#x5668;&#x4E2D;&#x4F7F;&#x7528;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5728;&#x63A7;&#x5236;&#x5668;&#x4E2D;&#x4F7F;&#x7528;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;</h3>
<p>&#x63A7;&#x5236;&#x5668;&#x7684;&#x5F00;&#x53D1;&#x4EBA;&#x5458;&#x53EF;&#x4EE5;&#x628A;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#x4F5C;&#x4E3A;&#x7B80;&#x5316;&#x63A7;&#x5236;&#x5668;&#x7684;&#x66F4;&#x65B0;&#x903B;&#x8F91;&#x7684;&#x65B9;&#x5F0F;&#x3002; &#x8BFB;-&#x6539;-&#x5199; &#x548C;/&#x6216; patch &#x7684;&#x4E3B;&#x8981;&#x533A;&#x522B;&#x5982;&#x4E0B;&#x6240;&#x793A;&#xFF1A;</p>
<ul>
<li>&#x5E94;&#x7528;&#x7684;&#x5BF9;&#x8C61;&#x5FC5;&#x987B;&#x5305;&#x542B;&#x63A7;&#x5236;&#x5668;&#x5173;&#x6CE8;&#x7684;&#x6240;&#x6709;&#x5B57;&#x6BB5;&#x3002;</li>
<li>&#x5BF9;&#x4E8E;&#x5728;&#x63A7;&#x5236;&#x5668;&#x6CA1;&#x6709;&#x6267;&#x884C;&#x8FC7;&#x5E94;&#x7528;&#x64CD;&#x4F5C;&#x4E4B;&#x524D;&#x5C31;&#x5DF2;&#x7ECF;&#x5B58;&#x5728;&#x7684;&#x5B57;&#x6BB5;&#xFF0C;&#x4E0D;&#x80FD;&#x5220;&#x9664;&#x3002; &#xFF08;&#x63A7;&#x5236;&#x5668;&#x5728;&#x8FD9;&#x79CD;&#x7528;&#x4F8B;&#x73AF;&#x5883;&#x4E0B;&#xFF0C;&#x4F9D;&#x7136;&#x53EF;&#x4EE5;&#x53D1;&#x9001;&#x4E00;&#x4E2A; PATCH/UPDATE&#xFF09;</li>
<li>&#x5BF9;&#x8C61;&#x4E0D;&#x5FC5;&#x4E8B;&#x5148;&#x8BFB;&#x53D6;&#xFF0C;<code>resourceVersion</code> &#x4E0D;&#x5FC5;&#x6307;&#x5B9A;&#x3002;</li>
</ul>
<p>&#x5F3A;&#x70C8;&#x63A8;&#x8350;&#xFF1A;&#x8BBE;&#x7F6E;&#x63A7;&#x5236;&#x5668;&#x5728;&#x51B2;&#x7A81;&#x65F6;&#x5F3A;&#x5236;&#x6267;&#x884C;&#xFF0C;&#x8FD9;&#x662F;&#x56E0;&#x4E3A;&#x51B2;&#x7A81;&#x53D1;&#x751F;&#x65F6;&#xFF0C;&#x5B83;&#x4EEC;&#x6CA1;&#x6709;&#x5176;&#x4ED6;&#x89E3;&#x51B3;&#x65B9;&#x6848;&#x6216;&#x63AA;&#x65BD;&#x3002;</p>
<h3 id="&#x8F6C;&#x79FB;&#x6240;&#x6709;&#x6743;"><a name="&#x8F6C;&#x79FB;&#x6240;&#x6709;&#x6743;" class="anchor-navigation-ex-anchor" href="#&#x8F6C;&#x79FB;&#x6240;&#x6709;&#x6743;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x8F6C;&#x79FB;&#x6240;&#x6709;&#x6743;</h3>
<p>&#x9664;&#x4E86;&#x901A;&#x8FC7;<a href="https://kubernetes.io/zh/docs/reference/using-api/server-side-apply/#conflicts" target="_blank">&#x51B2;&#x7A81;&#x89E3;&#x51B3;&#x65B9;&#x6848;</a>&#x63D0;&#x4F9B;&#x7684;&#x5E76;&#x53D1;&#x63A7;&#x5236;&#xFF0C; &#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#x63D0;&#x4F9B;&#x4E86;&#x4E00;&#x4E9B;&#x534F;&#x4F5C;&#x65B9;&#x5F0F;&#x6765;&#x5C06;&#x5B57;&#x6BB5;&#x6240;&#x6709;&#x6743;&#x4ECE;&#x7528;&#x6237;&#x8F6C;&#x79FB;&#x5230;&#x63A7;&#x5236;&#x5668;&#x3002;</p>
<p>&#x6700;&#x597D;&#x901A;&#x8FC7;&#x4F8B;&#x5B50;&#x6765;&#x8BF4;&#x660E;&#x8FD9;&#x4E00;&#x70B9;&#x3002; &#x8BA9;&#x6211;&#x4EEC;&#x6765;&#x770B;&#x770B;&#xFF0C;&#x5728;&#x4F7F;&#x7528; HorizontalPodAutoscaler &#x8D44;&#x6E90;&#x548C;&#x4E0E;&#x4E4B;&#x914D;&#x5957;&#x7684;&#x63A7;&#x5236;&#x5668;&#xFF0C; &#x4E14;&#x5F00;&#x542F;&#x4E86; Deployment &#x7684;&#x81EA;&#x52A8;&#x6C34;&#x5E73;&#x6269;&#x5C55;&#x529F;&#x80FD;&#x4E4B;&#x540E;&#xFF0C; &#x600E;&#x4E48;&#x5B89;&#x5168;&#x7684;&#x5C06; <code>replicas</code> &#x5B57;&#x6BB5;&#x7684;&#x6240;&#x6709;&#x6743;&#x4ECE;&#x7528;&#x6237;&#x8F6C;&#x79FB;&#x5230;&#x63A7;&#x5236;&#x5668;&#x3002;</p>
<p>&#x5047;&#x8BBE;&#x7528;&#x6237;&#x5B9A;&#x4E49;&#x4E86; Deployment&#xFF0C;&#x4E14; <code>replicas</code> &#x5B57;&#x6BB5;&#x5DF2;&#x7ECF;&#x8BBE;&#x7F6E;&#x4E3A;&#x671F;&#x671B;&#x7684;&#x503C;&#xFF1A;</p>
<p><a href="https://raw.githubusercontent.com/kubernetes/website/master/content/zh/examples/application/ssa/nginx-deployment.yaml" target="_blank"><code>application/ssa/nginx-deployment.yaml</code></a> <img src="https://d33wubrfki0l68.cloudfront.net/0901162ab78eb4ff2e9e5dc8b17c3824befc91a6/44ccd/images/copycode.svg" alt="Copy application/ssa/nginx-deployment.yaml to clipboard"></p>
<pre class="language-"><code class="lang-yaml"><span class="token key atrule">apiVersion</span><span class="token punctuation">:</span> apps/v1
<span class="token key atrule">kind</span><span class="token punctuation">:</span> Deployment
<span class="token key atrule">metadata</span><span class="token punctuation">:</span>
  <span class="token key atrule">name</span><span class="token punctuation">:</span> nginx<span class="token punctuation">-</span>deployment
  <span class="token key atrule">labels</span><span class="token punctuation">:</span>
    <span class="token key atrule">app</span><span class="token punctuation">:</span> nginx
<span class="token key atrule">spec</span><span class="token punctuation">:</span>
  <span class="token key atrule">replicas</span><span class="token punctuation">:</span> <span class="token number">3</span>
  <span class="token key atrule">selector</span><span class="token punctuation">:</span>
    <span class="token key atrule">matchLabels</span><span class="token punctuation">:</span>
      <span class="token key atrule">app</span><span class="token punctuation">:</span> nginx
  <span class="token key atrule">template</span><span class="token punctuation">:</span>
    <span class="token key atrule">metadata</span><span class="token punctuation">:</span>
      <span class="token key atrule">labels</span><span class="token punctuation">:</span>
        <span class="token key atrule">app</span><span class="token punctuation">:</span> nginx
    <span class="token key atrule">spec</span><span class="token punctuation">:</span>
      <span class="token key atrule">containers</span><span class="token punctuation">:</span>
      <span class="token punctuation">-</span> <span class="token key atrule">name</span><span class="token punctuation">:</span> nginx
        <span class="token key atrule">image</span><span class="token punctuation">:</span> nginx<span class="token punctuation">:</span>1.14.2
</code></pre>
<p>&#x5E76;&#x4E14;&#xFF0C;&#x7528;&#x6237;&#x4F7F;&#x7528;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#xFF0C;&#x50CF;&#x8FD9;&#x6837;&#x521B;&#x5EFA; Deployment&#xFF1A;</p>
<pre class="language-"><code class="lang-shell">kubectl apply -f https://k8s.io/examples/application/ssa/nginx-deployment.yaml --server-side
</code></pre>
<p>&#x7136;&#x540E;&#xFF0C;&#x4E3A; Deployment &#x542F;&#x7528; HPA&#xFF0C;&#x4F8B;&#x5982;&#xFF1A;</p>
<pre class="language-"><code class="lang-shell">kubectl autoscale deployment nginx-deployment --cpu-percent<span class="token operator">=</span><span class="token number">50</span> --min<span class="token operator">=</span><span class="token number">1</span> --max<span class="token operator">=</span><span class="token number">10</span>
</code></pre>
<p>&#x73B0;&#x5728;&#xFF0C;&#x7528;&#x6237;&#x5E0C;&#x671B;&#x4ECE;&#x4ED6;&#x4EEC;&#x7684;&#x914D;&#x7F6E;&#x4E2D;&#x5220;&#x9664; <code>replicas</code>&#xFF0C;&#x6240;&#x4EE5;&#x4ED6;&#x4EEC;&#x603B;&#x662F;&#x548C; HPA &#x63A7;&#x5236;&#x5668;&#x51B2;&#x7A81;&#x3002; &#x7136;&#x800C;&#xFF0C;&#x8FD9;&#x91CC;&#x5B58;&#x5728;&#x4E00;&#x4E2A;&#x7ADF;&#x6001;&#xFF1A; &#x5728; HPA &#x9700;&#x8981;&#x8C03;&#x6574; <code>replicas</code> &#x4E4B;&#x524D;&#x4F1A;&#x6709;&#x4E00;&#x4E2A;&#x65F6;&#x95F4;&#x7A97;&#x53E3;&#xFF0C; &#x5982;&#x679C;&#x5728; HPA &#x5199;&#x5165;&#x5B57;&#x6BB5;&#x6210;&#x4E3A;&#x6240;&#x6709;&#x8005;&#x4E4B;&#x524D;&#xFF0C;&#x7528;&#x6237;&#x5220;&#x9664;&#x4E86;<code>replicas</code>&#xFF0C; &#x90A3; API &#x670D;&#x52A1;&#x5668;&#x5C31;&#x4F1A;&#x628A; <code>replicas</code> &#x7684;&#x503C;&#x8BBE;&#x4E3A;1&#xFF0C; &#x4E5F;&#x5C31;&#x662F;&#x9ED8;&#x8BA4;&#x503C;&#x3002; &#x8FD9;&#x4E0D;&#x662F;&#x7528;&#x6237;&#x5E0C;&#x671B;&#x53D1;&#x751F;&#x7684;&#x4E8B;&#x60C5;&#xFF0C;&#x5373;&#x4F7F;&#x662F;&#x6682;&#x65F6;&#x7684;&#x3002;</p>
<p>&#x8FD9;&#x91CC;&#x6709;&#x4E24;&#x4E2A;&#x89E3;&#x51B3;&#x65B9;&#x6848;&#xFF1A;</p>
<ul>
<li>&#xFF08;&#x5BB9;&#x6613;&#xFF09; &#x628A; <code>replicas</code> &#x7559;&#x5728;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4E2D;&#xFF1B;&#x5F53; HPA &#x6700;&#x7EC8;&#x5199;&#x5165;&#x90A3;&#x4E2A;&#x5B57;&#x6BB5;&#xFF0C; &#x7CFB;&#x7EDF;&#x57FA;&#x4E8E;&#x6B64;&#x4E8B;&#x4EF6;&#x544A;&#x8BC9;&#x7528;&#x6237;&#xFF1A;&#x51B2;&#x7A81;&#x53D1;&#x751F;&#x4E86;&#x3002;&#x5728;&#x8FD9;&#x4E2A;&#x65F6;&#x95F4;&#x70B9;&#xFF0C;&#x53EF;&#x4EE5;&#x5B89;&#x5168;&#x7684;&#x5220;&#x9664;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x3002;</li>
<li>&#xFF08;&#x9AD8;&#x7EA7;&#xFF09;&#x7136;&#x800C;&#xFF0C;&#x5982;&#x679C;&#x7528;&#x6237;&#x4E0D;&#x60F3;&#x7B49;&#x5F85;&#xFF0C;&#x6BD4;&#x5982;&#x4ED6;&#x4EEC;&#x60F3;&#x4E3A;&#x5408;&#x4F5C;&#x4F19;&#x4F34;&#x4FDD;&#x6301;&#x96C6;&#x7FA4;&#x6E05;&#x6670;&#xFF0C; &#x90A3;&#x4ED6;&#x4EEC;&#x5C31;&#x53EF;&#x4EE5;&#x6267;&#x884C;&#x4EE5;&#x4E0B;&#x6B65;&#x9AA4;&#xFF0C;&#x5B89;&#x5168;&#x7684;&#x4ECE;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4E2D;&#x5220;&#x9664; <code>replicas</code>&#x3002;</li>
</ul>
<p>&#x9996;&#x5148;&#xFF0C;&#x7528;&#x6237;&#x65B0;&#x5B9A;&#x4E49;&#x4E00;&#x4E2A;&#x53EA;&#x5305;&#x542B; <code>replicas</code> &#x5B57;&#x6BB5;&#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#xFF1A;</p>
<p><a href="https://raw.githubusercontent.com/kubernetes/website/master/content/zh/examples/application/ssa/nginx-deployment-replicas-only.yaml" target="_blank"><code>application/ssa/nginx-deployment-replicas-only.yaml</code></a> <img src="https://d33wubrfki0l68.cloudfront.net/0901162ab78eb4ff2e9e5dc8b17c3824befc91a6/44ccd/images/copycode.svg" alt="Copy application/ssa/nginx-deployment-replicas-only.yaml to clipboard"></p>
<pre class="language-"><code class="lang-yaml"><span class="token key atrule">apiVersion</span><span class="token punctuation">:</span> apps/v1
<span class="token key atrule">kind</span><span class="token punctuation">:</span> Deployment
<span class="token key atrule">metadata</span><span class="token punctuation">:</span>
  <span class="token key atrule">name</span><span class="token punctuation">:</span> nginx<span class="token punctuation">-</span>deployment
<span class="token key atrule">spec</span><span class="token punctuation">:</span>
  <span class="token key atrule">replicas</span><span class="token punctuation">:</span> <span class="token number">3</span>
</code></pre>
<p>&#x7528;&#x6237;&#x4F7F;&#x7528;&#x540D;&#x4E3A; <code>handover-to-hpa</code> &#x7684;&#x5B57;&#x6BB5;&#x7BA1;&#x7406;&#x5668;&#xFF0C;&#x5E94;&#x7528;&#x6B64;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x3002;</p>
<pre class="language-"><code class="lang-shell">kubectl apply -f https://k8s.io/examples/application/ssa/nginx-deployment-replicas-only.yaml <span class="token punctuation">\</span>
  --server-side --field-manager<span class="token operator">=</span>handover-to-hpa <span class="token punctuation">\</span>
  --validate<span class="token operator">=</span>false
</code></pre>
<p>&#x5982;&#x679C;&#x5E94;&#x7528;&#x64CD;&#x4F5C;&#x548C; HPA &#x63A7;&#x5236;&#x5668;&#x4EA7;&#x751F;&#x51B2;&#x7A81;&#xFF0C;&#x90A3;&#x4EC0;&#x4E48;&#x90FD;&#x4E0D;&#x505A;&#x3002; &#x51B2;&#x7A81;&#x53EA;&#x662F;&#x8868;&#x660E;&#x63A7;&#x5236;&#x5668;&#x5728;&#x66F4;&#x65E9;&#x7684;&#x6D41;&#x7A0B;&#x4E2D;&#x5DF2;&#x7ECF;&#x5BF9;&#x5B57;&#x6BB5;&#x58F0;&#x660E;&#x8FC7;&#x6240;&#x6709;&#x6743;&#x3002;</p>
<p>&#x5728;&#x6B64;&#x65F6;&#x95F4;&#x70B9;&#xFF0C;&#x7528;&#x6237;&#x53EF;&#x4EE5;&#x4ECE;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4E2D;&#x5220;&#x9664; <code>replicas</code> &#x3002;</p>
<p><a href="https://raw.githubusercontent.com/kubernetes/website/master/content/zh/examples/application/ssa/nginx-deployment-no-replicas.yaml" target="_blank"><code>application/ssa/nginx-deployment-no-replicas.yaml</code></a> <img src="https://d33wubrfki0l68.cloudfront.net/0901162ab78eb4ff2e9e5dc8b17c3824befc91a6/44ccd/images/copycode.svg" alt="Copy application/ssa/nginx-deployment-no-replicas.yaml to clipboard"></p>
<pre class="language-"><code class="lang-yaml"><span class="token key atrule">apiVersion</span><span class="token punctuation">:</span> apps/v1
<span class="token key atrule">kind</span><span class="token punctuation">:</span> Deployment
<span class="token key atrule">metadata</span><span class="token punctuation">:</span>
  <span class="token key atrule">name</span><span class="token punctuation">:</span> nginx<span class="token punctuation">-</span>deployment
  <span class="token key atrule">labels</span><span class="token punctuation">:</span>
    <span class="token key atrule">app</span><span class="token punctuation">:</span> nginx
<span class="token key atrule">spec</span><span class="token punctuation">:</span>
  <span class="token key atrule">selector</span><span class="token punctuation">:</span>
    <span class="token key atrule">matchLabels</span><span class="token punctuation">:</span>
      <span class="token key atrule">app</span><span class="token punctuation">:</span> nginx
  <span class="token key atrule">template</span><span class="token punctuation">:</span>
    <span class="token key atrule">metadata</span><span class="token punctuation">:</span>
      <span class="token key atrule">labels</span><span class="token punctuation">:</span>
        <span class="token key atrule">app</span><span class="token punctuation">:</span> nginx
    <span class="token key atrule">spec</span><span class="token punctuation">:</span>
      <span class="token key atrule">containers</span><span class="token punctuation">:</span>
      <span class="token punctuation">-</span> <span class="token key atrule">name</span><span class="token punctuation">:</span> nginx
        <span class="token key atrule">image</span><span class="token punctuation">:</span> nginx<span class="token punctuation">:</span>1.14.2
</code></pre>
<p>&#x6CE8;&#x610F;&#xFF0C;&#x53EA;&#x8981; HPA &#x63A7;&#x5236;&#x5668;&#x4E3A; <code>replicas</code> &#x8BBE;&#x7F6E;&#x4E86;&#x4E00;&#x4E2A;&#x65B0;&#x503C;&#xFF0C; &#x8BE5;&#x4E34;&#x65F6;&#x5B57;&#x6BB5;&#x7BA1;&#x7406;&#x5668;&#x5C06;&#x4E0D;&#x518D;&#x62E5;&#x6709;&#x4EFB;&#x4F55;&#x5B57;&#x6BB5;&#xFF0C;&#x4F1A;&#x88AB;&#x81EA;&#x52A8;&#x5220;&#x9664;&#x3002; &#x8FD9;&#x91CC;&#x4E0D;&#x9700;&#x8981;&#x6267;&#x884C;&#x6E05;&#x7406;&#x5DE5;&#x4F5C;&#x3002;</p>
<h2 id="&#x5728;&#x7528;&#x6237;&#x4E4B;&#x95F4;&#x8F6C;&#x79FB;&#x6240;&#x6709;&#x6743;"><a name="&#x5728;&#x7528;&#x6237;&#x4E4B;&#x95F4;&#x8F6C;&#x79FB;&#x6240;&#x6709;&#x6743;" class="anchor-navigation-ex-anchor" href="#&#x5728;&#x7528;&#x6237;&#x4E4B;&#x95F4;&#x8F6C;&#x79FB;&#x6240;&#x6709;&#x6743;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5728;&#x7528;&#x6237;&#x4E4B;&#x95F4;&#x8F6C;&#x79FB;&#x6240;&#x6709;&#x6743;</h2>
<p>&#x901A;&#x8FC7;&#x5728;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4E2D;&#x628A;&#x4E00;&#x4E2A;&#x5B57;&#x6BB5;&#x8BBE;&#x7F6E;&#x4E3A;&#x76F8;&#x540C;&#x7684;&#x503C;&#xFF0C;&#x7528;&#x6237;&#x53EF;&#x4EE5;&#x5728;&#x4ED6;&#x4EEC;&#x4E4B;&#x95F4;&#x8F6C;&#x79FB;&#x5B57;&#x6BB5;&#x7684;&#x6240;&#x6709;&#x6743;&#xFF0C; &#x4ECE;&#x800C;&#x5171;&#x4EAB;&#x4E86;&#x5B57;&#x6BB5;&#x7684;&#x6240;&#x6709;&#x6743;&#x3002; &#x5F53;&#x7528;&#x6237;&#x5171;&#x4EAB;&#x4E86;&#x5B57;&#x6BB5;&#x7684;&#x6240;&#x6709;&#x6743;&#xFF0C;&#x4EFB;&#x4F55;&#x4E00;&#x4E2A;&#x7528;&#x6237;&#x53EF;&#x4EE5;&#x4ECE;&#x4ED6;&#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4E2D;&#x5220;&#x9664;&#x8BE5;&#x5B57;&#x6BB5;&#xFF0C; &#x5E76;&#x5E94;&#x7528;&#x8BE5;&#x53D8;&#x66F4;&#xFF0C;&#x4ECE;&#x800C;&#x653E;&#x5F03;&#x6240;&#x6709;&#x6743;&#xFF0C;&#x5E76;&#x5B9E;&#x73B0;&#x4E86;&#x6240;&#x6709;&#x6743;&#x5411;&#x5176;&#x4ED6;&#x7528;&#x6237;&#x7684;&#x8F6C;&#x79FB;&#x3002;</p>
<h2 id="&#x4E0E;&#x5BA2;&#x6237;&#x7AEF;&#x5E94;&#x7528;&#x7684;&#x5BF9;&#x6BD4;"><a name="&#x4E0E;&#x5BA2;&#x6237;&#x7AEF;&#x5E94;&#x7528;&#x7684;&#x5BF9;&#x6BD4;" class="anchor-navigation-ex-anchor" href="#&#x4E0E;&#x5BA2;&#x6237;&#x7AEF;&#x5E94;&#x7528;&#x7684;&#x5BF9;&#x6BD4;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4E0E;&#x5BA2;&#x6237;&#x7AEF;&#x5E94;&#x7528;&#x7684;&#x5BF9;&#x6BD4;</h2>
<p>&#x7531;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#x5B9E;&#x73B0;&#x7684;&#x51B2;&#x7A81;&#x68C0;&#x6D4B;&#x548C;&#x89E3;&#x51B3;&#x65B9;&#x6848;&#x7684;&#x4E00;&#x4E2A;&#x7ED3;&#x679C;&#x5C31;&#x662F;&#xFF0C; &#x5E94;&#x7528;&#x8005;&#x603B;&#x662F;&#x53EF;&#x4EE5;&#x5728;&#x672C;&#x5730;&#x72B6;&#x6001;&#x4E2D;&#x5F97;&#x5230;&#x6700;&#x65B0;&#x7684;&#x5B57;&#x6BB5;&#x503C;&#x3002; &#x5982;&#x679C;&#x5F97;&#x4E0D;&#x5230;&#x6700;&#x65B0;&#x503C;&#xFF0C;&#x4E0B;&#x6B21;&#x6267;&#x884C;&#x5E94;&#x7528;&#x64CD;&#x4F5C;&#x65F6;&#x5C31;&#x4F1A;&#x53D1;&#x751F;&#x51B2;&#x7A81;&#x3002; &#x89E3;&#x51B3;&#x51B2;&#x7A81;&#x4E09;&#x4E2A;&#x9009;&#x9879;&#x7684;&#x4EFB;&#x610F;&#x4E00;&#x4E2A;&#x90FD;&#x4F1A;&#x4FDD;&#x8BC1;&#xFF1A;&#x6B64;&#x5E94;&#x7528;&#x8FC7;&#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x662F;&#x670D;&#x52A1;&#x5668;&#x4E0A;&#x5BF9;&#x8C61;&#x5B57;&#x6BB5;&#x7684;&#x6700;&#x65B0;&#x5B50;&#x96C6;&#x3002;</p>
<p>&#x8FD9;&#x548C;&#x5BA2;&#x6237;&#x7AEF;&#x5E94;&#x7528;&#xFF08;Client Side Apply&#xFF09; &#x4E0D;&#x540C;&#xFF0C;&#x5982;&#x679C;&#x6709;&#x5176;&#x4ED6;&#x7528;&#x6237;&#x8986;&#x76D6;&#x4E86;&#x6B64;&#x503C;&#xFF0C; &#x8FC7;&#x671F;&#x7684;&#x503C;&#x88AB;&#x7559;&#x5728;&#x4E86;&#x5E94;&#x7528;&#x8005;&#x672C;&#x5730;&#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4E2D;&#x3002; &#x9664;&#x975E;&#x7528;&#x6237;&#x66F4;&#x65B0;&#x4E86;&#x7279;&#x5B9A;&#x5B57;&#x6BB5;&#xFF0C;&#x6B64;&#x5B57;&#x6BB5;&#x624D;&#x4F1A;&#x51C6;&#x786E;&#xFF0C; &#x5E94;&#x7528;&#x8005;&#x6CA1;&#x6709;&#x9014;&#x5F84;&#x53BB;&#x4E86;&#x89E3;&#x4E0B;&#x4E00;&#x6B21;&#x5E94;&#x7528;&#x64CD;&#x4F5C;&#x662F;&#x5426;&#x4F1A;&#x8986;&#x76D6;&#x5176;&#x4ED6;&#x7528;&#x6237;&#x7684;&#x4FEE;&#x6539;&#x3002;</p>
<p>&#x53E6;&#x4E00;&#x4E2A;&#x533A;&#x522B;&#x662F;&#x4F7F;&#x7528;&#x5BA2;&#x6237;&#x7AEF;&#x5E94;&#x7528;&#x7684;&#x5E94;&#x7528;&#x8005;&#x4E0D;&#x80FD;&#x6539;&#x53D8;&#x4ED6;&#x4EEC;&#x6B63;&#x5728;&#x4F7F;&#x7528;&#x7684; API &#x7248;&#x672C;&#xFF0C;&#x4F46;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#x652F;&#x6301;&#x8FD9;&#x4E2A;&#x573A;&#x666F;&#x3002;</p>
<h2 id="&#x4ECE;&#x5BA2;&#x6237;&#x7AEF;&#x5E94;&#x7528;&#x5347;&#x7EA7;&#x5230;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;"><a name="&#x4ECE;&#x5BA2;&#x6237;&#x7AEF;&#x5E94;&#x7528;&#x5347;&#x7EA7;&#x5230;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;" class="anchor-navigation-ex-anchor" href="#&#x4ECE;&#x5BA2;&#x6237;&#x7AEF;&#x5E94;&#x7528;&#x5347;&#x7EA7;&#x5230;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4ECE;&#x5BA2;&#x6237;&#x7AEF;&#x5E94;&#x7528;&#x5347;&#x7EA7;&#x5230;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;</h2>
<p>&#x5BA2;&#x6237;&#x7AEF;&#x5E94;&#x7528;&#x65B9;&#x5F0F;&#x65F6;&#xFF0C;&#x7528;&#x6237;&#x4F7F;&#x7528; <code>kubectl apply</code> &#x7BA1;&#x7406;&#x8D44;&#x6E90;&#xFF0C; &#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x4F7F;&#x7528;&#x4E0B;&#x9762;&#x6807;&#x8BB0;&#x5207;&#x6362;&#x4E3A;&#x4F7F;&#x7528;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#x3002;</p>
<pre class="language-"><code class="lang-shell">kubectl apply --server-side <span class="token punctuation">[</span>--dry-run<span class="token operator">=</span>server<span class="token punctuation">]</span>
</code></pre>
<p>&#x9ED8;&#x8BA4;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;&#x5BF9;&#x8C61;&#x7684;&#x5B57;&#x6BB5;&#x7BA1;&#x7406;&#x4ECE;&#x5BA2;&#x6237;&#x7AEF;&#x5E94;&#x7528;&#x65B9;&#x5F0F;&#x8FC1;&#x79FB;&#x5230; kubectl &#x89E6;&#x53D1;&#x7684;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#x65F6;&#xFF0C;&#x4E0D;&#x4F1A;&#x53D1;&#x751F;&#x51B2;&#x7A81;&#x3002;</p>
<blockquote>
<p><strong>&#x6CE8;&#x610F;&#xFF1A;</strong></p>
<p>&#x4FDD;&#x6301;&#x6CE8;&#x89E3; <code>last-applied-configuration</code> &#x662F;&#x6700;&#x65B0;&#x7684;&#x3002; &#x4ECE;&#x6CE8;&#x89E3;&#x80FD;&#x63A8;&#x65AD;&#x51FA;&#x5B57;&#x6BB5;&#x662F;&#x7531;&#x5BA2;&#x6237;&#x7AEF;&#x5E94;&#x7528;&#x7BA1;&#x7406;&#x7684;&#x3002; &#x4EFB;&#x4F55;&#x6CA1;&#x6709;&#x88AB;&#x5BA2;&#x6237;&#x7AEF;&#x5E94;&#x7528;&#x7BA1;&#x7406;&#x7684;&#x5B57;&#x6BB5;&#x5C06;&#x5F15;&#x53D1;&#x51B2;&#x7A81;&#x3002;</p>
<p>&#x4E3E;&#x4F8B;&#x8BF4;&#x660E;&#xFF0C;&#x6BD4;&#x5982;&#x4F60;&#x5728;&#x5BA2;&#x6237;&#x7AEF;&#x5E94;&#x7528;&#x4E4B;&#x540E;&#xFF0C; &#x4F7F;&#x7528; <code>kubectl scale</code> &#x53BB;&#x66F4;&#x65B0; <code>replicas</code> &#x5B57;&#x6BB5;&#xFF0C; &#x53EF;&#x662F;&#x8BE5;&#x5B57;&#x6BB5;&#x5E76;&#x6CA1;&#x6709;&#x88AB;&#x5BA2;&#x6237;&#x7AEF;&#x5E94;&#x7528;&#x6240;&#x62E5;&#x6709;&#xFF0C; &#x5728;&#x6267;&#x884C; <code>kubectl apply --server-side</code> &#x65F6;&#x5C31;&#x4F1A;&#x4EA7;&#x751F;&#x51B2;&#x7A81;&#x3002;</p>
</blockquote>
<p>&#x6B64;&#x64CD;&#x4F5C;&#x4EE5; <code>kubectl</code> &#x4F5C;&#x4E3A;&#x5B57;&#x6BB5;&#x7BA1;&#x7406;&#x5668;&#x6765;&#x5E94;&#x7528;&#x5230;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#x3002; &#x4F5C;&#x4E3A;&#x4F8B;&#x5916;&#xFF0C;&#x53EF;&#x4EE5;&#x6307;&#x5B9A;&#x4E00;&#x4E2A;&#x4E0D;&#x540C;&#x7684;&#x3001;&#x975E;&#x9ED8;&#x8BA4;&#x5B57;&#x6BB5;&#x7BA1;&#x7406;&#x5668;&#x505C;&#x6B62;&#x7684;&#x8FD9;&#x79CD;&#x884C;&#x4E3A;&#xFF0C;&#x5982;&#x4E0B;&#x9762;&#x7684;&#x4F8B;&#x5B50;&#x6240;&#x793A;&#x3002; &#x5BF9;&#x4E8E; kubectl &#x89E6;&#x53D1;&#x7684;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#xFF0C;&#x9ED8;&#x8BA4;&#x7684;&#x5B57;&#x6BB5;&#x7BA1;&#x7406;&#x5668;&#x662F; <code>kubectl</code>&#x3002;</p>
<pre class="language-"><code class="lang-shell">kubectl apply --server-side --field-manager<span class="token operator">=</span>my-manager <span class="token punctuation">[</span>--dry-run<span class="token operator">=</span>server<span class="token punctuation">]</span>
</code></pre>
<h2 id="&#x4ECE;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#x964D;&#x7EA7;&#x5230;&#x5BA2;&#x6237;&#x7AEF;&#x5E94;&#x7528;"><a name="&#x4ECE;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#x964D;&#x7EA7;&#x5230;&#x5BA2;&#x6237;&#x7AEF;&#x5E94;&#x7528;" class="anchor-navigation-ex-anchor" href="#&#x4ECE;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#x964D;&#x7EA7;&#x5230;&#x5BA2;&#x6237;&#x7AEF;&#x5E94;&#x7528;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4ECE;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#x964D;&#x7EA7;&#x5230;&#x5BA2;&#x6237;&#x7AEF;&#x5E94;&#x7528;</h2>
<p>&#x5982;&#x679C;&#x4F60;&#x7528; <code>kubectl apply --server-side</code> &#x7BA1;&#x7406;&#x4E00;&#x4E2A;&#x8D44;&#x6E90;&#xFF0C; &#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x7528; <code>kubectl apply</code> &#x547D;&#x4EE4;&#x5C06;&#x5176;&#x964D;&#x7EA7;&#x4E3A;&#x5BA2;&#x6237;&#x7AEF;&#x5E94;&#x7528;&#x3002;</p>
<p>&#x964D;&#x7EA7;&#x4E4B;&#x6240;&#x4EE5;&#x53EF;&#x884C;&#xFF0C;&#x8FD9;&#x662F;&#x56E0;&#x4E3A; <code>kubectl server-side apply</code> &#x4F1A;&#x4FDD;&#x5B58;&#x6700;&#x65B0;&#x7684; <code>last-applied-configuration</code> &#x6CE8;&#x89E3;&#x3002;</p>
<p>&#x6B64;&#x64CD;&#x4F5C;&#x4EE5; <code>kubectl</code> &#x4F5C;&#x4E3A;&#x5B57;&#x6BB5;&#x7BA1;&#x7406;&#x5668;&#x5E94;&#x7528;&#x5230;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#x3002; &#x4F5C;&#x4E3A;&#x4F8B;&#x5916;&#xFF0C;&#x53EF;&#x4EE5;&#x6307;&#x5B9A;&#x4E00;&#x4E2A;&#x4E0D;&#x540C;&#x7684;&#x3001;&#x975E;&#x9ED8;&#x8BA4;&#x5B57;&#x6BB5;&#x7BA1;&#x7406;&#x5668;&#x505C;&#x6B62;&#x8FD9;&#x79CD;&#x884C;&#x4E3A;&#xFF0C;&#x5982;&#x4E0B;&#x9762;&#x7684;&#x4F8B;&#x5B50;&#x6240;&#x793A;&#x3002; &#x5BF9;&#x4E8E; kubectl &#x89E6;&#x53D1;&#x7684;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#xFF0C;&#x9ED8;&#x8BA4;&#x7684;&#x5B57;&#x6BB5;&#x7BA1;&#x7406;&#x5668;&#x662F; <code>kubectl</code>&#x3002;</p>
<pre class="language-"><code class="lang-shell">kubectl apply --server-side --field-manager<span class="token operator">=</span>my-manager <span class="token punctuation">[</span>--dry-run<span class="token operator">=</span>server<span class="token punctuation">]</span>
</code></pre>
<h2 id="api-&#x7AEF;&#x70B9;"><a name="api-&#x7AEF;&#x70B9;" class="anchor-navigation-ex-anchor" href="#api-&#x7AEF;&#x70B9;"><i class="fa fa-link" aria-hidden="true"></i></a>API &#x7AEF;&#x70B9;</h2>
<p>&#x542F;&#x7528;&#x4E86;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#x7279;&#x6027;&#x4E4B;&#x540E;&#xFF0C; <code>PATCH</code> &#x670D;&#x52A1;&#x7AEF;&#x70B9;&#x63A5;&#x53D7;&#x989D;&#x5916;&#x7684;&#x5185;&#x5BB9;&#x7C7B;&#x578B; <code>application/apply-patch+yaml</code>&#x3002; &#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#x7684;&#x7528;&#x6237;&#x5C31;&#x53EF;&#x4EE5;&#x628A; YAMl &#x683C;&#x5F0F;&#x7684; &#x90E8;&#x5206;&#x5B9A;&#x4E49;&#x5BF9;&#x8C61;&#xFF08;partially specified objects&#xFF09;&#x53D1;&#x9001;&#x5230;&#x6B64;&#x7AEF;&#x70B9;&#x3002; &#x5F53;&#x4E00;&#x4E2A;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x88AB;&#x5E94;&#x7528;&#x65F6;&#xFF0C;&#x5B83;&#x5E94;&#x8BE5;&#x5305;&#x542B;&#x6240;&#x6709;&#x4F53;&#x73B0;&#x4F60;&#x610F;&#x56FE;&#x7684;&#x5B57;&#x6BB5;&#x3002;</p>
<h2 id="&#x6E05;&#x9664;-managedfields"><a name="&#x6E05;&#x9664;-managedfields" class="anchor-navigation-ex-anchor" href="#&#x6E05;&#x9664;-managedfields"><i class="fa fa-link" aria-hidden="true"></i></a>&#x6E05;&#x9664; ManagedFields</h2>
<p>&#x53EF;&#x4EE5;&#x4ECE;&#x5BF9;&#x8C61;&#x4E2D;&#x5265;&#x79BB;&#x6240;&#x6709; managedField&#xFF0C; &#x5B9E;&#x73B0;&#x65B9;&#x6CD5;&#x662F;&#x901A;&#x8FC7;&#x4F7F;&#x7528; <code>MergePatch</code>&#x3001; <code>StrategicMergePatch</code>&#x3001; <code>JSONPatch</code>&#x3001; <code>Update</code>&#x3001;&#x4EE5;&#x53CA;&#x6240;&#x6709;&#x7684;&#x975E;&#x5E94;&#x7528;&#x65B9;&#x5F0F;&#x7684;&#x64CD;&#x4F5C;&#x6765;&#x8986;&#x76D6;&#x5B83;&#x3002; &#x8FD9;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x7528;&#x7A7A;&#x6761;&#x76EE;&#x8986;&#x76D6; managedFields &#x5B57;&#x6BB5;&#x7684;&#x65B9;&#x5F0F;&#x5B9E;&#x73B0;&#x3002;</p>
<pre class="language-"><code class="lang-console">PATCH /api/v1/namespaces/default/configmaps/example-cm
Content-Type: application/merge-patch+json
Accept: application/json
Data: {&quot;metadata&quot;:{&quot;managedFields&quot;: [{}]}}
PATCH /api/v1/namespaces/default/configmaps/example-cm
Content-Type: application/json-patch+json
Accept: application/json
Data: [{&quot;op&quot;: &quot;replace&quot;, &quot;path&quot;: &quot;/metadata/managedFields&quot;, &quot;value&quot;: [{}]}]
</code></pre>
<p>&#x8FD9;&#x4E00;&#x64CD;&#x4F5C;&#x5C06;&#x7528;&#x53EA;&#x5305;&#x542B;&#x4E00;&#x4E2A;&#x7A7A;&#x6761;&#x76EE;&#x7684; list &#x8986;&#x5199; managedFields&#xFF0C; &#x6765;&#x5B9E;&#x73B0;&#x4ECE;&#x5BF9;&#x8C61;&#x4E2D;&#x6574;&#x4E2A;&#x7684;&#x53BB;&#x9664; managedFields&#x3002; &#x6CE8;&#x610F;&#xFF0C;&#x53EA;&#x628A; managedFields &#x8BBE;&#x7F6E;&#x4E3A;&#x7A7A; list &#x5E76;&#x4E0D;&#x4F1A;&#x91CD;&#x7F6E;&#x5B57;&#x6BB5;&#x3002; &#x8FD9;&#x4E48;&#x505A;&#x662F;&#x6709;&#x76EE;&#x7684;&#x7684;&#xFF0C;&#x6240;&#x4EE5; managedFields &#x5C06;&#x6C38;&#x8FDC;&#x4E0D;&#x4F1A;&#x88AB;&#x4E0E;&#x8BE5;&#x5B57;&#x6BB5;&#x65E0;&#x5173;&#x7684;&#x5BA2;&#x6237;&#x5220;&#x9664;&#x3002;</p>
<p>&#x5728;&#x91CD;&#x7F6E;&#x64CD;&#x4F5C;&#x7ED3;&#x5408; managedFields &#x4EE5;&#x5916;&#x5176;&#x4ED6;&#x5B57;&#x6BB5;&#x66F4;&#x6539;&#x7684;&#x573A;&#x666F;&#x4E2D;&#xFF0C; &#x5C06;&#x5BFC;&#x81F4; managedFields &#x9996;&#x5148;&#x88AB;&#x91CD;&#x7F6E;&#xFF0C;&#x5176;&#x4ED6;&#x6539;&#x53D8;&#x88AB;&#x62BC;&#x540E;&#x5904;&#x7406;&#x3002; &#x5176;&#x7ED3;&#x679C;&#x662F;&#xFF0C;&#x5E94;&#x7528;&#x8005;&#x53D6;&#x5F97;&#x4E86;&#x540C;&#x4E00;&#x4E2A;&#x8BF7;&#x6C42;&#x4E2D;&#x6240;&#x6709;&#x5B57;&#x6BB5;&#x7684;&#x6240;&#x6709;&#x6743;&#x3002;</p>
<blockquote>
<p><strong>&#x6CE8;&#x610F;&#xFF1A;</strong> &#x5BF9;&#x4E8E;&#x4E0D;&#x63A5;&#x53D7;&#x8D44;&#x6E90;&#x5BF9;&#x8C61;&#x7C7B;&#x578B;&#x7684;&#x5B50;&#x8D44;&#x6E90;&#xFF08;sub-resources&#xFF09;&#xFF0C; &#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#x4E0D;&#x80FD;&#x6B63;&#x786E;&#x5730;&#x8DDF;&#x8E2A;&#x5176;&#x6240;&#x6709;&#x6743;&#x3002; &#x5982;&#x679C;&#x4F60;&#x5BF9;&#x8FD9;&#x6837;&#x7684;&#x5B50;&#x8D44;&#x6E90;&#x4F7F;&#x7528;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#xFF0C;&#x53D8;&#x66F4;&#x7684;&#x5B57;&#x6BB5;&#x5C06;&#x4E0D;&#x4F1A;&#x88AB;&#x8DDF;&#x8E2A;&#x3002;</p>
</blockquote>
<h2 id="&#x7981;&#x7528;&#x6B64;&#x529F;&#x80FD;"><a name="&#x7981;&#x7528;&#x6B64;&#x529F;&#x80FD;" class="anchor-navigation-ex-anchor" href="#&#x7981;&#x7528;&#x6B64;&#x529F;&#x80FD;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x7981;&#x7528;&#x6B64;&#x529F;&#x80FD;</h2>
<p>&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x5E94;&#x7528;&#x662F;&#x4E00;&#x4E2A; beta &#x7248;&#x7279;&#x6027;&#xFF0C;&#x9ED8;&#x8BA4;&#x542F;&#x7528;&#x3002; &#x8981;&#x5173;&#x95ED;&#x6B64;<a href="https://kubernetes.io/zh/docs/reference/command-line-tools-reference/feature-gates" target="_blank">&#x7279;&#x6027;&#x95E8;&#x63A7;</a>&#xFF0C; &#x4F60;&#x9700;&#x8981;&#x5728;&#x542F;&#x52A8; <code>kube-apiserver</code> &#x65F6;&#x5305;&#x542B;&#x53C2;&#x6570; <code>--feature-gates ServerSideApply=false</code>&#x3002; &#x5982;&#x679C;&#x4F60;&#x6709;&#x591A;&#x4E2A; <code>kube-apiserver</code> &#x526F;&#x672C;&#xFF0C;&#x4ED6;&#x4EEC;&#x90FD;&#x5E94;&#x8BE5;&#x6709;&#x76F8;&#x540C;&#x7684;&#x6807;&#x8BB0;&#x8BBE;&#x7F6E;&#x3002; </p>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; caixisheng 2017 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">&#x8BE5;&#x6587;&#x4EF6;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2021-05-19 10:00:31
</span></footer> <link rel="stylesheet" type="text/css" href="https://storage.googleapis.com/app.klipse.tech/css/codemirror.css"> <script>     window.klipse_settings = {         selector: ".language-klipse, .lang-eval-clojure",         selector_eval_js: ".lang-eval-js",         selector_eval_python_client: ".lang-eval-python",         selector_eval_php: ".lang-eval-php",         selector_eval_scheme: ".lang-eval-scheme",         selector_eval_ruby: ".lang-eval-ruby",         selector_reagent: ".lang-reagent",        selector_google_charts: ".lang-google-chart",        selector_es2017: ".lang-eval-es2017",        selector_jsx: ".lang-eval-jsx",        selector_transpile_jsx: ".lang-transpile-jsx",        selector_render_jsx: ".lang-render-jsx",        selector_react: ".lang-react",        selector_eval_markdown: ".lang-render-markdown",        selector_eval_lambdaway: ".lang-render-lambdaway",        selector_eval_cpp: ".lang-eval-cpp",        selector_eval_html: ".lang-render-html",        selector_sql: ".lang-eval-sql",        selector_brainfuck: "lang-eval-brainfuck",        selector_js: ".lang-transpile-cljs"    }; </script> <script src="https://storage.googleapis.com/app.klipse.tech/plugin/js/klipse_plugin.js"></script>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="readme.html" class="navigation navigation-prev " aria-label="Previous page: Readme">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="准入控制.html" class="navigation navigation-next " aria-label="Next page: 准入控制">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"Server Side Apply","level":"1.9.29.6","depth":3,"next":{"title":"准入控制","level":"1.9.29.7","depth":3,"path":"blog/kubernetes/task/准入控制.md","ref":"blog/kubernetes/task/准入控制.md","articles":[]},"previous":{"title":"Readme","level":"1.9.29.5","depth":3,"path":"blog/kubernetes/task/readme.md","ref":"blog/kubernetes/task/readme.md","articles":[]},"dir":"ltr"},"config":{"plugins":["summary","expandable-chapters","toggle-chapters","theme-comscore","-lunr","-search","-highlight","-livereload","search-plus@^0.0.11","simple-page-toc@^0.1.1","github@^2.0.0","github-buttons@2.1.0","edit-link@^2.0.2","disqus@^0.1.0","prism@^2.1.0","prism-themes@^0.0.2","advanced-emoji@^0.2.1","anchors@^0.7.1","include-codeblock@^3.0.2","emphasize@^1.1.0","katex@^1.1.3","splitter@^0.0.8","mermaid-gb3@2.1.0","tbfed-pagefooter@^0.0.1","expandable-chapters-small@^0.1.7","sectionx@^3.1.0","donate@^1.0.2","local-video@^1.0.1","anchor-navigation-ex@0.1.8","favicon@^0.0.2","3-ba@^0.9.0","terminal@^0.3.2","alerts@^0.2.0","include-csv@^0.1.0","puml@^1.0.1","musicxml@^1.0.2","klipse@^1.2.0","versions-select@^0.1.1","-sharing","sharing-plus@^0.0.2","graph@^0.1.0","chart@^0.2.0"],"root":".","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright © caixisheng 2017","modify_label":"该文件修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"prism":{"css":["prism-themes/themes/prism-base16-ateliersulphurpool.light.css"]},"include-csv":{},"disqus":{"useIdentifier":false,"shortName":"gitbookuse"},"emphasize":{},"github":{"url":"https://github.com/xishengcai/xisheng.blog"},"puml":{},"simple-page-toc":{"maxDepth":3,"skipFirstH1":true},"summary":{},"splitter":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"versions-select":{"type":"branches"},"graph":{},"donate":{"alipay":"https://cai-hello-1253732611.cos.ap-shanghai.myqcloud.com/share/zhifubao-pay.jpg","alipayText":"支付宝打赏","button":"赏","title":"","wechat":"https://cai-hello-1253732611.cos.ap-shanghai.myqcloud.com/share/weixin-pay.jpg","wechatText":"微信打赏"},"katex":{},"fontsettings":{"theme":"white","family":"sans","size":2},"musicxml":{},"sectionx":{"tag":"b"},"mermaid-gb3":{},"anchor-navigation-ex":{"isRewritePageTitle":false,"tocLevel1Icon":"fa fa-hand-o-right","tocLevel2Icon":"fa fa-hand-o-right","tocLevel3Icon":"fa fa-hand-o-right"},"favicon":{"shortcut":"favicon.ico","bookmark":"favicon.ico"},"theme-comscore":{},"prism-themes":{},"alerts":{},"github-buttons":{"repo":"xishengcai/xisheng.blog","types":["star"],"size":"small"},"3-ba":{"configuration":"auto","token":"ff100361cdce95dd4c8fb96b4009f7bc"},"expandable-chapters-small":{},"local-video":{},"klipse":{"myConfigKey":"it's the default value"},"advanced-emoji":{"embedEmojis":false},"include-codeblock":{"check":false,"edit":true,"fixlang":false,"lang":"","template":"ace","theme":"chrome","unindent":true},"sharing":{"qq":false,"all":["facebook","google","twitter","weibo","instapaper","linkedin","pocket","stumbleupon","qq","qzone"],"douban":false,"facebook":false,"weibo":true,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":false,"messenger":false,"line":false,"vk":false,"pocket":false,"google":true,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":true},"terminal":{"copyButtons":true,"fade":false,"style":"flat"},"edit-link":{"label":"Edit This Page","base":"https://github.com/xishengcai/xisheng.blog/edit/master"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":true},"anchors":{},"chart":{"type":"c3"},"toggle-chapters":{},"expandable-chapters":{},"search-plus":{}},"theme":"default","author":"xishengcai","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"这是程序员吗","language":"zh-hans","output.name":"site","links":{"sidebar":{"Home":"https://xisheng.vip"}},"gitbook":"3.2.3","description":"这是程序员吗"},"file":{"path":"blog/kubernetes/task/server-side-apply.md","mtime":"2021-05-19T02:00:31.760Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-06-23T07:51:54.455Z"},"basePath":"../../..","book":{"language":""}});
        });
    </script>
</div>

        
    
    <script src="../../../gitbook/gitbook.js"></script>
    <script src="../../../gitbook/theme.js"></script>
    
        
        <script src="../../../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-toggle-chapters/toggle.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-search-plus/search.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-edit-link/plugin.js"></script>
        
    
        
        <script src="https://cdnjs.cloudflare.com/ajax/libs/URI.js/1.16.1/URI.min.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-disqus/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-mermaid-gb3/book/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-sectionx/sectionx.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-donate/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-local-video/video.min.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-3-ba/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-terminal/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-alerts/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-musicxml/osmd.min.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-musicxml/musicxml.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-musicxml/promise.min.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-versions-select/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-theme-comscore/test.js"></script>
        
    

    <script src="../../../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.min.js"></script>

    </body>
</html>

